From 3a22c0efe67d50ef62b27efdc40325b6353edfd0 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:24:08 +0200 Subject: [PATCH 1/9] removing unnecessary md files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e181024..49faf71 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ +docs/**/[Ss]ystem.*.md # Visual Studio 2015/2017 cache/options directory .vs/ From 38215843c9b889e7420c086d1b24b18787206804 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:26:26 +0200 Subject: [PATCH 2/9] removing unnecessary md files - 1 --- .gitignore | 2 +- .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- docs/net6.0/DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 714 --- ...Net.Extensions.SystemTypes.ReadableSpan.md | 914 ---- ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 ----- .../DevFast.Net.Extensions.SystemTypes.md | 12 - ...tics.CodeAnalysis.ExperimentalAttribute.md | 86 - ...deAnalysis.SetsRequiredMembersAttribute.md | 22 - ...tics.CodeAnalysis.StringSyntaxAttribute.md | 264 -- ...stics.CodeAnalysis.UnscopedRefAttribute.md | 35 - .../net6.0/System.Diagnostics.CodeAnalysis.md | 10 - ...ilerServices.CollectionBuilderAttribute.md | 81 - ...rvices.CompilerFeatureRequiredAttribute.md | 100 - ...ompilerServices.RequiredMemberAttribute.md | 20 - ...pilerServices.RequiresLocationAttribute.md | 22 - .../net6.0/System.Runtime.CompilerServices.md | 10 - docs/net6.0/index.md | 13 - .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- docs/net8.0/DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 680 --- ...Net.Extensions.SystemTypes.ReadableSpan.md | 1354 ------ ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 ----- .../DevFast.Net.Extensions.SystemTypes.md | 12 - docs/net8.0/index.md | 11 - .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- .../DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 714 --- ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ---- .../DevFast.Net.Extensions.SystemTypes.md | 11 - ...nostics.CodeAnalysis.AllowNullAttribute.md | 20 - ...tics.CodeAnalysis.DisallowNullAttribute.md | 20 - ...ics.CodeAnalysis.DoesNotReturnAttribute.md | 20 - ...s.CodeAnalysis.DoesNotReturnIfAttribute.md | 57 - ...tics.CodeAnalysis.ExperimentalAttribute.md | 86 - ...nostics.CodeAnalysis.MaybeNullAttribute.md | 20 - ...ics.CodeAnalysis.MaybeNullWhenAttribute.md | 56 - ...ics.CodeAnalysis.MemberNotNullAttribute.md | 74 - ...CodeAnalysis.MemberNotNullWhenAttribute.md | 102 - ...agnostics.CodeAnalysis.NotNullAttribute.md | 22 - ....CodeAnalysis.NotNullIfNotNullAttribute.md | 56 - ...stics.CodeAnalysis.NotNullWhenAttribute.md | 56 - ...deAnalysis.SetsRequiredMembersAttribute.md | 22 - ...tics.CodeAnalysis.StringSyntaxAttribute.md | 264 -- ...stics.CodeAnalysis.UnscopedRefAttribute.md | 35 - .../System.Diagnostics.CodeAnalysis.md | 21 - docs/netstandard2.0/System.Index.md | 253 -- docs/netstandard2.0/System.Range.md | 214 - ...vices.CallerArgumentExpressionAttribute.md | 56 - ...ilerServices.CollectionBuilderAttribute.md | 81 - ...rvices.CompilerFeatureRequiredAttribute.md | 100 - ...erpolatedStringHandlerArgumentAttribute.md | 83 - ...ices.InterpolatedStringHandlerAttribute.md | 20 - ...Runtime.CompilerServices.IsExternalInit.md | 22 - ...ilerServices.ModuleInitializerAttribute.md | 38 - ...ompilerServices.RequiredMemberAttribute.md | 20 - ...pilerServices.RequiresLocationAttribute.md | 22 - ...ompilerServices.SkipLocalsInitAttribute.md | 20 - .../System.Runtime.CompilerServices.md | 16 - ...ioning.RequiresPreviewFeaturesAttribute.md | 77 - .../System.Runtime.Versioning.md | 7 - docs/netstandard2.0/System.md | 8 - docs/netstandard2.0/index.md | 15 - .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- .../DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 714 --- ...Net.Extensions.SystemTypes.ReadableSpan.md | 650 --- ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ---- .../DevFast.Net.Extensions.SystemTypes.md | 12 - ...tics.CodeAnalysis.ExperimentalAttribute.md | 86 - ...ics.CodeAnalysis.MemberNotNullAttribute.md | 74 - ...CodeAnalysis.MemberNotNullWhenAttribute.md | 102 - ...deAnalysis.SetsRequiredMembersAttribute.md | 22 - ...tics.CodeAnalysis.StringSyntaxAttribute.md | 264 -- ...stics.CodeAnalysis.UnscopedRefAttribute.md | 35 - .../System.Diagnostics.CodeAnalysis.md | 12 - ...vices.CallerArgumentExpressionAttribute.md | 56 - ...ilerServices.CollectionBuilderAttribute.md | 81 - ...rvices.CompilerFeatureRequiredAttribute.md | 100 - ...erpolatedStringHandlerArgumentAttribute.md | 83 - ...ices.InterpolatedStringHandlerAttribute.md | 20 - ...Runtime.CompilerServices.IsExternalInit.md | 22 - ...ilerServices.ModuleInitializerAttribute.md | 38 - ...ompilerServices.RequiredMemberAttribute.md | 20 - ...pilerServices.RequiresLocationAttribute.md | 22 - ...ompilerServices.SkipLocalsInitAttribute.md | 20 - .../System.Runtime.CompilerServices.md | 16 - ...ioning.RequiresPreviewFeaturesAttribute.md | 77 - .../System.Runtime.Versioning.md | 7 - docs/netstandard2.1/index.md | 14 - 106 files changed, 1 insertion(+), 40880 deletions(-) delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/net6.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md delete mode 100644 docs/net6.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md delete mode 100644 docs/net6.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md delete mode 100644 docs/net6.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md delete mode 100644 docs/net6.0/System.Diagnostics.CodeAnalysis.md delete mode 100644 docs/net6.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md delete mode 100644 docs/net6.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md delete mode 100644 docs/net6.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md delete mode 100644 docs/net6.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md delete mode 100644 docs/net6.0/System.Runtime.CompilerServices.md delete mode 100644 docs/net6.0/index.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/net8.0/index.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.AllowNullAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md delete mode 100644 docs/netstandard2.0/System.Diagnostics.CodeAnalysis.md delete mode 100644 docs/netstandard2.0/System.Index.md delete mode 100644 docs/netstandard2.0/System.Range.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.IsExternalInit.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.ModuleInitializerAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.CompilerServices.md delete mode 100644 docs/netstandard2.0/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md delete mode 100644 docs/netstandard2.0/System.Runtime.Versioning.md delete mode 100644 docs/netstandard2.0/System.md delete mode 100644 docs/netstandard2.0/index.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md delete mode 100644 docs/netstandard2.1/System.Diagnostics.CodeAnalysis.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.CollectionBuilderAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.IsExternalInit.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.ModuleInitializerAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.RequiredMemberAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.RequiresLocationAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.CompilerServices.md delete mode 100644 docs/netstandard2.1/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md delete mode 100644 docs/netstandard2.1/System.Runtime.Versioning.md delete mode 100644 docs/netstandard2.1/index.md diff --git a/.gitignore b/.gitignore index 49faf71..aacbc34 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ -docs/**/[Ss]ystem.*.md +[Ss]ystem.*.md # Visual Studio 2015/2017 cache/options directory .vs/ diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index a08d9d6..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static System.Threading.Tasks.ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 593ffdd..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index b8f0ba3..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.md b/docs/net6.0/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index 2321c3b..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,714 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method - -Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. - -```csharp -public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') - -#### Returns -[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md deleted file mode 100644 index 70e8bbd..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md +++ /dev/null @@ -1,914 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` -- *Methods* - - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** - - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan -### Methods - - - -## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out bool value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index 992ba3f..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,1127 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index 314805e..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net6.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md b/docs/net6.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md deleted file mode 100644 index 524532a..0000000 --- a/docs/net6.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md +++ /dev/null @@ -1,86 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## ExperimentalAttribute Class - -Indicates that an API is experimental and it may change in the future. - -```csharp -internal sealed class ExperimentalAttribute : System.Attribute -``` -- *Constructors* - - **[ExperimentalAttribute(string)](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string) 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string)')** -- *Properties* - - **[DiagnosticId](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.DiagnosticId 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.DiagnosticId')** - - **[UrlFormat](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat')** - -## ExperimentalAttribute Class - -Indicates that an API is experimental and it may change in the future. - -```csharp -internal sealed class ExperimentalAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 ExperimentalAttribute - -### Remarks -This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental -feature is used. Authors can use this attribute to ship preview features in their assemblies. -### Constructors - - - -## ExperimentalAttribute(string) Constructor - -Initializes a new instance of the [ExperimentalAttribute](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute') class, -specifying the ID that the compiler will use when reporting a use of the API the attribute applies to. - -```csharp -public ExperimentalAttribute(string diagnosticId); -``` -#### Parameters - - - -`diagnosticId` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The ID that the compiler will use when reporting a use of the API the attribute applies to. -### Properties - - - -## ExperimentalAttribute.DiagnosticId Property - -Gets the ID that the compiler will use when reporting a use of the API the attribute applies to. - -```csharp -public string DiagnosticId { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -The unique diagnostic ID. - -### Remarks -The diagnostic ID is shown in build output for warnings and errors. - -This property represents the unique ID that can be used to suppress the warnings or errors, if needed. - - - -## ExperimentalAttribute.UrlFormat Property - -Gets or sets the URL for corresponding documentation. -The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID. - -```csharp -public string? UrlFormat { get; set; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -The format string that represents a URL to corresponding documentation. - -### Remarks -An example format string is `https://contoso.com/obsoletion-warnings/{0}`. \ No newline at end of file diff --git a/docs/net6.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md b/docs/net6.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md deleted file mode 100644 index fc458cf..0000000 --- a/docs/net6.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## SetsRequiredMembersAttribute Class - -Specifies that this constructor sets all required members for the current type, -and callers do not need to set any required members themselves. - -```csharp -internal sealed class SetsRequiredMembersAttribute : System.Attribute -``` - -## SetsRequiredMembersAttribute Class - -Specifies that this constructor sets all required members for the current type, -and callers do not need to set any required members themselves. - -```csharp -internal sealed class SetsRequiredMembersAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 SetsRequiredMembersAttribute \ No newline at end of file diff --git a/docs/net6.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md b/docs/net6.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md deleted file mode 100644 index dcc7248..0000000 --- a/docs/net6.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md +++ /dev/null @@ -1,264 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## StringSyntaxAttribute Class - -Specifies the syntax used in a string. - -```csharp -internal sealed class StringSyntaxAttribute : System.Attribute -``` -- *Constructors* - - **[StringSyntaxAttribute(string)](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string) 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string)')** - - **[StringSyntaxAttribute(string, object[])](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string,object[]) 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string, object[])')** -- *Fields* - - **[CompositeFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.CompositeFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.CompositeFormat')** - - **[DateOnlyFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateOnlyFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateOnlyFormat')** - - **[DateTimeFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateTimeFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateTimeFormat')** - - **[EnumFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.EnumFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.EnumFormat')** - - **[GuidFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.GuidFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.GuidFormat')** - - **[Json](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Json 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Json')** - - **[NumericFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.NumericFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.NumericFormat')** - - **[Regex](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex')** - - **[TimeOnlyFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeOnlyFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeOnlyFormat')** - - **[TimeSpanFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeSpanFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeSpanFormat')** - - **[Uri](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Uri 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Uri')** - - **[Xml](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Xml 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Xml')** -- *Properties* - - **[Arguments](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Arguments 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Arguments')** - - **[Syntax](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Syntax 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Syntax')** - -## StringSyntaxAttribute Class - -Specifies the syntax used in a string. - -```csharp -internal sealed class StringSyntaxAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 StringSyntaxAttribute -### Constructors - - - -## StringSyntaxAttribute(string) Constructor - -Initializes the [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') with the identifier of the syntax used. - -```csharp -public StringSyntaxAttribute(string syntax); -``` -#### Parameters - - - -`syntax` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The syntax identifier. - - - -## StringSyntaxAttribute(string, object[]) Constructor - -Initializes the [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') with the identifier of the syntax used. - -```csharp -public StringSyntaxAttribute(string syntax, params object?[] arguments); -``` -#### Parameters - - - -`syntax` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The syntax identifier. - - - -`arguments` [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Optional arguments associated with the specific syntax employed. -### Fields - - - -## StringSyntaxAttribute.CompositeFormat Field - -The syntax identifier for strings containing composite formats for string formatting. - -```csharp -public const string CompositeFormat = CompositeFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.DateOnlyFormat Field - -The syntax identifier for strings containing date format specifiers. - -```csharp -public const string DateOnlyFormat = DateOnlyFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.DateTimeFormat Field - -The syntax identifier for strings containing date and time format specifiers. - -```csharp -public const string DateTimeFormat = DateTimeFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.EnumFormat Field - -The syntax identifier for strings containing [System.Enum](https://docs.microsoft.com/en-us/dotnet/api/System.Enum 'System.Enum') format specifiers. - -```csharp -public const string EnumFormat = EnumFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.GuidFormat Field - -The syntax identifier for strings containing [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') format specifiers. - -```csharp -public const string GuidFormat = GuidFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Json Field - -The syntax identifier for strings containing JavaScript Object Notation (JSON). - -```csharp -public const string Json = Json; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.NumericFormat Field - -The syntax identifier for strings containing numeric format specifiers. - -```csharp -public const string NumericFormat = NumericFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Regex Field - -The syntax identifier for strings containing regular expressions. - -```csharp -public const string Regex = Regex; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.TimeOnlyFormat Field - -The syntax identifier for strings containing time format specifiers. - -```csharp -public const string TimeOnlyFormat = TimeOnlyFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.TimeSpanFormat Field - -The syntax identifier for strings containing [System.TimeSpan](https://docs.microsoft.com/en-us/dotnet/api/System.TimeSpan 'System.TimeSpan') format specifiers. - -```csharp -public const string TimeSpanFormat = TimeSpanFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Uri Field - -The syntax identifier for strings containing URIs. - -```csharp -public const string Uri = Uri; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Xml Field - -The syntax identifier for strings containing XML. - -```csharp -public const string Xml = Xml; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Properties - - - -## StringSyntaxAttribute.Arguments Property - -Optional arguments associated with the specific syntax employed. - -```csharp -public object?[] Arguments { get; } -``` - -#### Property Value -[System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## StringSyntaxAttribute.Syntax Property - -Gets the identifier of the syntax used. - -```csharp -public string Syntax { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/net6.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md b/docs/net6.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md deleted file mode 100644 index 67ed8ec..0000000 --- a/docs/net6.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md +++ /dev/null @@ -1,35 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## UnscopedRefAttribute Class - -Used to indicate a byref escapes and is not scoped. - -```csharp -internal sealed class UnscopedRefAttribute : System.Attribute -``` - -## UnscopedRefAttribute Class - -Used to indicate a byref escapes and is not scoped. - -```csharp -internal sealed class UnscopedRefAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 UnscopedRefAttribute - -### Remarks - -There are several cases where the C# compiler treats a [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') as implicitly -[scoped](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/scoped 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/scoped') - where the compiler does not allow the [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') to escape the method. - -For example: -1. [this](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this') for [struct](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct') instance methods. -2. [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') parameters that refer to [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref')[struct](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct') types. -3. [out](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out') parameters. - -This attribute is used in those instances where the [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') should be allowed to escape. - -Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for -API authors to understand the lifetime implications of applying this attribute and how it may impact their users. \ No newline at end of file diff --git a/docs/net6.0/System.Diagnostics.CodeAnalysis.md b/docs/net6.0/System.Diagnostics.CodeAnalysis.md deleted file mode 100644 index bd207e9..0000000 --- a/docs/net6.0/System.Diagnostics.CodeAnalysis.md +++ /dev/null @@ -1,10 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Diagnostics.CodeAnalysis Namespace - -| Classes | | -| :--- | :--- | -| [ExperimentalAttribute](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute') | Indicates that an API is experimental and it may change in the future. | -| [SetsRequiredMembersAttribute](System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md 'System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute') | Specifies that this constructor sets all required members for the current type, and callers do not need to set any required members themselves. | -| [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') | Specifies the syntax used in a string. | -| [UnscopedRefAttribute](System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md 'System.Diagnostics.CodeAnalysis.UnscopedRefAttribute') | Used to indicate a byref escapes and is not scoped. | diff --git a/docs/net6.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md b/docs/net6.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md deleted file mode 100644 index 670cd24..0000000 --- a/docs/net6.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md +++ /dev/null @@ -1,81 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CollectionBuilderAttribute Class - -```csharp -internal sealed class CollectionBuilderAttribute : System.Attribute -``` -- *Constructors* - - **[CollectionBuilderAttribute(Type, string)](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string) 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string)')** -- *Properties* - - **[BuilderType](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.BuilderType 'System.Runtime.CompilerServices.CollectionBuilderAttribute.BuilderType')** - - **[MethodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.MethodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.MethodName')** - -## CollectionBuilderAttribute Class - -```csharp -internal sealed class CollectionBuilderAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CollectionBuilderAttribute -### Constructors - - - -## CollectionBuilderAttribute(Type, string) Constructor - -Initialize the attribute to refer to the [methodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).methodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).methodName') method on the [builderType](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).builderType 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).builderType') type. - -```csharp -public CollectionBuilderAttribute(System.Type builderType, string methodName); -``` -#### Parameters - - - -`builderType` [System.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System.Type') - -The type of the builder to use to construct the collection. - - - -`methodName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the method on the builder to use to construct the collection. - -### Remarks -[methodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).methodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).methodName') must refer to a static method that accepts a single parameter of - type [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') and returns an instance of the collection being built containing - a copy of the data from that span. In future releases of .NET, additional patterns may be supported. -### Properties - - - -## CollectionBuilderAttribute.BuilderType Property - -Gets the type of the builder to use to construct the collection. - -```csharp -public System.Type BuilderType { get; } -``` - -#### Property Value -[System.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System.Type') - - - -## CollectionBuilderAttribute.MethodName Property - -Gets the name of the method on the builder to use to construct the collection. - -```csharp -public string MethodName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -### Remarks -This should match the metadata name of the target method. -For example, this might be ".ctor" if targeting the type's constructor. \ No newline at end of file diff --git a/docs/net6.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md b/docs/net6.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md deleted file mode 100644 index 38e3d73..0000000 --- a/docs/net6.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md +++ /dev/null @@ -1,100 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CompilerFeatureRequiredAttribute Class - -Indicates that compiler support for a particular feature is required for the location where this attribute is applied. - -```csharp -internal sealed class CompilerFeatureRequiredAttribute : System.Attribute -``` -- *Constructors* - - **[CompilerFeatureRequiredAttribute(string)](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute(string) 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute(string)')** -- *Fields* - - **[RefStructs](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs')** - - **[RequiredMembers](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers')** -- *Properties* - - **[FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName')** - - **[IsOptional](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional')** - -## CompilerFeatureRequiredAttribute Class - -Indicates that compiler support for a particular feature is required for the location where this attribute is applied. - -```csharp -internal sealed class CompilerFeatureRequiredAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CompilerFeatureRequiredAttribute -### Constructors - - - -## CompilerFeatureRequiredAttribute(string) Constructor - -Creates a new instance of the [CompilerFeatureRequiredAttribute](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute') type. - -```csharp -public CompilerFeatureRequiredAttribute(string featureName); -``` -#### Parameters - - - -`featureName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the feature to indicate. -### Fields - - - -## CompilerFeatureRequiredAttribute.RefStructs Field - -The [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName') used for the ref structs C# feature. - -```csharp -public const string RefStructs = RefStructs; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## CompilerFeatureRequiredAttribute.RequiredMembers Field - -The [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName') used for the required members C# feature. - -```csharp -public const string RequiredMembers = RequiredMembers; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Properties - - - -## CompilerFeatureRequiredAttribute.FeatureName Property - -The name of the compiler feature. - -```csharp -public string FeatureName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## CompilerFeatureRequiredAttribute.IsOptional Property - -If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName'). - -```csharp -public bool IsOptional { get; set; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md b/docs/net6.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md deleted file mode 100644 index 3f430ce..0000000 --- a/docs/net6.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## RequiredMemberAttribute Class - -Specifies that a type has required members or that a member is required. - -```csharp -internal sealed class RequiredMemberAttribute : System.Attribute -``` - -## RequiredMemberAttribute Class - -Specifies that a type has required members or that a member is required. - -```csharp -internal sealed class RequiredMemberAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiredMemberAttribute \ No newline at end of file diff --git a/docs/net6.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md b/docs/net6.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md deleted file mode 100644 index 656282c..0000000 --- a/docs/net6.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## RequiresLocationAttribute Class - -Reserved for use by a compiler for tracking metadata. -This attribute should not be used by developers in source code. - -```csharp -internal sealed class RequiresLocationAttribute : System.Attribute -``` - -## RequiresLocationAttribute Class - -Reserved for use by a compiler for tracking metadata. -This attribute should not be used by developers in source code. - -```csharp -internal sealed class RequiresLocationAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiresLocationAttribute \ No newline at end of file diff --git a/docs/net6.0/System.Runtime.CompilerServices.md b/docs/net6.0/System.Runtime.CompilerServices.md deleted file mode 100644 index 7b9f134..0000000 --- a/docs/net6.0/System.Runtime.CompilerServices.md +++ /dev/null @@ -1,10 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Runtime.CompilerServices Namespace - -| Classes | | -| :--- | :--- | -| [CollectionBuilderAttribute](System.Runtime.CompilerServices.CollectionBuilderAttribute.md 'System.Runtime.CompilerServices.CollectionBuilderAttribute') | | -| [CompilerFeatureRequiredAttribute](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute') | Indicates that compiler support for a particular feature is required for the location where this attribute is applied. | -| [RequiredMemberAttribute](System.Runtime.CompilerServices.RequiredMemberAttribute.md 'System.Runtime.CompilerServices.RequiredMemberAttribute') | Specifies that a type has required members or that a member is required. | -| [RequiresLocationAttribute](System.Runtime.CompilerServices.RequiresLocationAttribute.md 'System.Runtime.CompilerServices.RequiresLocationAttribute') | Reserved for use by a compiler for tracking metadata. This attribute should not be used by developers in source code. | diff --git a/docs/net6.0/index.md b/docs/net6.0/index.md deleted file mode 100644 index f30a022..0000000 --- a/docs/net6.0/index.md +++ /dev/null @@ -1,13 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index a08d9d6..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static System.Threading.Tasks.ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 593ffdd..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index b8f0ba3..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.md b/docs/net8.0/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index 5b70731..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,680 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md deleted file mode 100644 index 92a937c..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md +++ /dev/null @@ -1,1354 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` -- *Methods* - - **[TryTo(this ReadOnlySpan<byte>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** - - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan -### Methods - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out bool value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index 992ba3f..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,1127 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index 314805e..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net8.0/index.md b/docs/net8.0/index.md deleted file mode 100644 index 466fbdf..0000000 --- a/docs/net8.0/index.md +++ /dev/null @@ -1,11 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index 1bd372f..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 49b75c2..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index e13fda5..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index f5ef6fb..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,714 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method - -Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. - -```csharp -public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') - -#### Returns -[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index dc2cc7a..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,863 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index ae5ee25..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,11 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.AllowNullAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.AllowNullAttribute.md deleted file mode 100644 index 950a3fa..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.AllowNullAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## AllowNullAttribute Class - -Specifies that null is allowed as an input even if the corresponding type disallows it. - -```csharp -internal sealed class AllowNullAttribute : System.Attribute -``` - -## AllowNullAttribute Class - -Specifies that null is allowed as an input even if the corresponding type disallows it. - -```csharp -internal sealed class AllowNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 AllowNullAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.md deleted file mode 100644 index 8a7753f..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## DisallowNullAttribute Class - -Specifies that null is disallowed as an input even if the corresponding type allows it. - -```csharp -internal sealed class DisallowNullAttribute : System.Attribute -``` - -## DisallowNullAttribute Class - -Specifies that null is disallowed as an input even if the corresponding type allows it. - -```csharp -internal sealed class DisallowNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 DisallowNullAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.md deleted file mode 100644 index dc19739..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## DoesNotReturnAttribute Class - -Applied to a method that will never return under any circumstance. - -```csharp -internal sealed class DoesNotReturnAttribute : System.Attribute -``` - -## DoesNotReturnAttribute Class - -Applied to a method that will never return under any circumstance. - -```csharp -internal sealed class DoesNotReturnAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 DoesNotReturnAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md deleted file mode 100644 index ab7cc39..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md +++ /dev/null @@ -1,57 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## DoesNotReturnIfAttribute Class - -Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - -```csharp -internal sealed class DoesNotReturnIfAttribute : System.Attribute -``` -- *Constructors* - - **[DoesNotReturnIfAttribute(bool)](System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md#System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.DoesNotReturnIfAttribute(bool) 'System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.DoesNotReturnIfAttribute(bool)')** -- *Properties* - - **[ParameterValue](System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md#System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.ParameterValue 'System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.ParameterValue')** - -## DoesNotReturnIfAttribute Class - -Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - -```csharp -internal sealed class DoesNotReturnIfAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 DoesNotReturnIfAttribute -### Constructors - - - -## DoesNotReturnIfAttribute(bool) Constructor - -Initializes the attribute with the specified parameter value. - -```csharp -public DoesNotReturnIfAttribute(bool parameterValue); -``` -#### Parameters - - - -`parameterValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The condition parameter value. Code after the method will be considered unreachable -by diagnostics if the argument to the associated parameter matches this value. -### Properties - - - -## DoesNotReturnIfAttribute.ParameterValue Property - -Gets the condition parameter value. - -```csharp -public bool ParameterValue { get; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md deleted file mode 100644 index 524532a..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md +++ /dev/null @@ -1,86 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## ExperimentalAttribute Class - -Indicates that an API is experimental and it may change in the future. - -```csharp -internal sealed class ExperimentalAttribute : System.Attribute -``` -- *Constructors* - - **[ExperimentalAttribute(string)](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string) 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string)')** -- *Properties* - - **[DiagnosticId](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.DiagnosticId 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.DiagnosticId')** - - **[UrlFormat](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat')** - -## ExperimentalAttribute Class - -Indicates that an API is experimental and it may change in the future. - -```csharp -internal sealed class ExperimentalAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 ExperimentalAttribute - -### Remarks -This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental -feature is used. Authors can use this attribute to ship preview features in their assemblies. -### Constructors - - - -## ExperimentalAttribute(string) Constructor - -Initializes a new instance of the [ExperimentalAttribute](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute') class, -specifying the ID that the compiler will use when reporting a use of the API the attribute applies to. - -```csharp -public ExperimentalAttribute(string diagnosticId); -``` -#### Parameters - - - -`diagnosticId` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The ID that the compiler will use when reporting a use of the API the attribute applies to. -### Properties - - - -## ExperimentalAttribute.DiagnosticId Property - -Gets the ID that the compiler will use when reporting a use of the API the attribute applies to. - -```csharp -public string DiagnosticId { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -The unique diagnostic ID. - -### Remarks -The diagnostic ID is shown in build output for warnings and errors. - -This property represents the unique ID that can be used to suppress the warnings or errors, if needed. - - - -## ExperimentalAttribute.UrlFormat Property - -Gets or sets the URL for corresponding documentation. -The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID. - -```csharp -public string? UrlFormat { get; set; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -The format string that represents a URL to corresponding documentation. - -### Remarks -An example format string is `https://contoso.com/obsoletion-warnings/{0}`. \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.md deleted file mode 100644 index eee2cfd..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## MaybeNullAttribute Class - -Specifies that an output may be null even if the corresponding type disallows it. - -```csharp -internal sealed class MaybeNullAttribute : System.Attribute -``` - -## MaybeNullAttribute Class - -Specifies that an output may be null even if the corresponding type disallows it. - -```csharp -internal sealed class MaybeNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 MaybeNullAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md deleted file mode 100644 index 6b94dd8..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md +++ /dev/null @@ -1,56 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## MaybeNullWhenAttribute Class - -Specifies that when a method returns [ReturnValue](System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue'), the parameter may be null even if the corresponding type disallows it. - -```csharp -internal sealed class MaybeNullWhenAttribute : System.Attribute -``` -- *Constructors* - - **[MaybeNullWhenAttribute(bool)](System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.MaybeNullWhenAttribute(bool) 'System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.MaybeNullWhenAttribute(bool)')** -- *Properties* - - **[ReturnValue](System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue')** - -## MaybeNullWhenAttribute Class - -Specifies that when a method returns [ReturnValue](System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue'), the parameter may be null even if the corresponding type disallows it. - -```csharp -internal sealed class MaybeNullWhenAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 MaybeNullWhenAttribute -### Constructors - - - -## MaybeNullWhenAttribute(bool) Constructor - -Initializes the attribute with the specified return value condition. - -```csharp -public MaybeNullWhenAttribute(bool returnValue); -``` -#### Parameters - - - -`returnValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The return value condition. If the method returns this value, the associated parameter may be null. -### Properties - - - -## MaybeNullWhenAttribute.ReturnValue Property - -Gets the return value condition. - -```csharp -public bool ReturnValue { get; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md deleted file mode 100644 index 8a75847..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md +++ /dev/null @@ -1,74 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## MemberNotNullAttribute Class - -Specifies that the method or property will ensure that the listed field and property members have not-null values. - -```csharp -internal sealed class MemberNotNullAttribute : System.Attribute -``` -- *Constructors* - - **[MemberNotNullAttribute(string)](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string) 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string)')** - - **[MemberNotNullAttribute(string[])](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string[]) 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string[])')** -- *Properties* - - **[Members](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.Members 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.Members')** - -## MemberNotNullAttribute Class - -Specifies that the method or property will ensure that the listed field and property members have not-null values. - -```csharp -internal sealed class MemberNotNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 MemberNotNullAttribute -### Constructors - - - -## MemberNotNullAttribute(string) Constructor - -Initializes the attribute with a field or property member. - -```csharp -public MemberNotNullAttribute(string member); -``` -#### Parameters - - - -`member` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The field or property member that is promised to be not-null. - - - -## MemberNotNullAttribute(string[]) Constructor - -Initializes the attribute with the list of field and property members. - -```csharp -public MemberNotNullAttribute(params string[] members); -``` -#### Parameters - - - -`members` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -The list of field and property members that are promised to be not-null. -### Properties - - - -## MemberNotNullAttribute.Members Property - -Gets field or property member names. - -```csharp -public string[] Members { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md deleted file mode 100644 index 6c130c3..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md +++ /dev/null @@ -1,102 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## MemberNotNullWhenAttribute Class - -Specifies that the method or property will ensure that the listed field and property -members have not-null values when returning with the specified return value condition. - -```csharp -internal sealed class MemberNotNullWhenAttribute : System.Attribute -``` -- *Constructors* - - **[MemberNotNullWhenAttribute(bool, string)](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool,string) 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool, string)')** - - **[MemberNotNullWhenAttribute(bool, string[])](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool,string[]) 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool, string[])')** -- *Properties* - - **[Members](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.Members 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.Members')** - - **[ReturnValue](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.ReturnValue')** - -## MemberNotNullWhenAttribute Class - -Specifies that the method or property will ensure that the listed field and property -members have not-null values when returning with the specified return value condition. - -```csharp -internal sealed class MemberNotNullWhenAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 MemberNotNullWhenAttribute -### Constructors - - - -## MemberNotNullWhenAttribute(bool, string) Constructor - -Initializes the attribute with the specified return value condition and a field or property member. - -```csharp -public MemberNotNullWhenAttribute(bool returnValue, string member); -``` -#### Parameters - - - -`returnValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The return value condition. If the method returns this value, the associated parameter will not be null. - - - -`member` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The field or property member that is promised to be not-null. - - - -## MemberNotNullWhenAttribute(bool, string[]) Constructor - -Initializes the attribute with the specified return value condition and list of field and property members. - -```csharp -public MemberNotNullWhenAttribute(bool returnValue, params string[] members); -``` -#### Parameters - - - -`returnValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The return value condition. If the method returns this value, the associated parameter will not be null. - - - -`members` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -The list of field and property members that are promised to be not-null. -### Properties - - - -## MemberNotNullWhenAttribute.Members Property - -Gets field or property member names. - -```csharp -public string[] Members { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## MemberNotNullWhenAttribute.ReturnValue Property - -Gets the return value condition. - -```csharp -public bool ReturnValue { get; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullAttribute.md deleted file mode 100644 index 063262d..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## NotNullAttribute Class - -Specifies that an output will not be null even if the corresponding type allows it. -Specifies that an input argument was not null when the call returns. - -```csharp -internal sealed class NotNullAttribute : System.Attribute -``` - -## NotNullAttribute Class - -Specifies that an output will not be null even if the corresponding type allows it. -Specifies that an input argument was not null when the call returns. - -```csharp -internal sealed class NotNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 NotNullAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md deleted file mode 100644 index 314a2df..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md +++ /dev/null @@ -1,56 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## NotNullIfNotNullAttribute Class - -Specifies that the output will be non-null if the named parameter is non-null. - -```csharp -internal sealed class NotNullIfNotNullAttribute : System.Attribute -``` -- *Constructors* - - **[NotNullIfNotNullAttribute(string)](System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md#System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.NotNullIfNotNullAttribute(string) 'System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.NotNullIfNotNullAttribute(string)')** -- *Properties* - - **[ParameterName](System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md#System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.ParameterName 'System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.ParameterName')** - -## NotNullIfNotNullAttribute Class - -Specifies that the output will be non-null if the named parameter is non-null. - -```csharp -internal sealed class NotNullIfNotNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 NotNullIfNotNullAttribute -### Constructors - - - -## NotNullIfNotNullAttribute(string) Constructor - -Initializes the attribute with the associated parameter name. - -```csharp -public NotNullIfNotNullAttribute(string parameterName); -``` -#### Parameters - - - -`parameterName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null. -### Properties - - - -## NotNullIfNotNullAttribute.ParameterName Property - -Gets the associated parameter name. - -```csharp -public string ParameterName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md deleted file mode 100644 index 72e2599..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md +++ /dev/null @@ -1,56 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## NotNullWhenAttribute Class - -Specifies that when a method returns [ReturnValue](System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue'), the parameter will not be null even if the corresponding type allows it. - -```csharp -internal sealed class NotNullWhenAttribute : System.Attribute -``` -- *Constructors* - - **[NotNullWhenAttribute(bool)](System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.NotNullWhenAttribute(bool) 'System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.NotNullWhenAttribute(bool)')** -- *Properties* - - **[ReturnValue](System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue')** - -## NotNullWhenAttribute Class - -Specifies that when a method returns [ReturnValue](System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue'), the parameter will not be null even if the corresponding type allows it. - -```csharp -internal sealed class NotNullWhenAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 NotNullWhenAttribute -### Constructors - - - -## NotNullWhenAttribute(bool) Constructor - -Initializes the attribute with the specified return value condition. - -```csharp -public NotNullWhenAttribute(bool returnValue); -``` -#### Parameters - - - -`returnValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The return value condition. If the method returns this value, the associated parameter will not be null. -### Properties - - - -## NotNullWhenAttribute.ReturnValue Property - -Gets the return value condition. - -```csharp -public bool ReturnValue { get; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md deleted file mode 100644 index fc458cf..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## SetsRequiredMembersAttribute Class - -Specifies that this constructor sets all required members for the current type, -and callers do not need to set any required members themselves. - -```csharp -internal sealed class SetsRequiredMembersAttribute : System.Attribute -``` - -## SetsRequiredMembersAttribute Class - -Specifies that this constructor sets all required members for the current type, -and callers do not need to set any required members themselves. - -```csharp -internal sealed class SetsRequiredMembersAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 SetsRequiredMembersAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md deleted file mode 100644 index dcc7248..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md +++ /dev/null @@ -1,264 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## StringSyntaxAttribute Class - -Specifies the syntax used in a string. - -```csharp -internal sealed class StringSyntaxAttribute : System.Attribute -``` -- *Constructors* - - **[StringSyntaxAttribute(string)](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string) 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string)')** - - **[StringSyntaxAttribute(string, object[])](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string,object[]) 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string, object[])')** -- *Fields* - - **[CompositeFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.CompositeFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.CompositeFormat')** - - **[DateOnlyFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateOnlyFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateOnlyFormat')** - - **[DateTimeFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateTimeFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateTimeFormat')** - - **[EnumFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.EnumFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.EnumFormat')** - - **[GuidFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.GuidFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.GuidFormat')** - - **[Json](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Json 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Json')** - - **[NumericFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.NumericFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.NumericFormat')** - - **[Regex](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex')** - - **[TimeOnlyFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeOnlyFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeOnlyFormat')** - - **[TimeSpanFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeSpanFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeSpanFormat')** - - **[Uri](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Uri 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Uri')** - - **[Xml](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Xml 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Xml')** -- *Properties* - - **[Arguments](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Arguments 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Arguments')** - - **[Syntax](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Syntax 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Syntax')** - -## StringSyntaxAttribute Class - -Specifies the syntax used in a string. - -```csharp -internal sealed class StringSyntaxAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 StringSyntaxAttribute -### Constructors - - - -## StringSyntaxAttribute(string) Constructor - -Initializes the [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') with the identifier of the syntax used. - -```csharp -public StringSyntaxAttribute(string syntax); -``` -#### Parameters - - - -`syntax` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The syntax identifier. - - - -## StringSyntaxAttribute(string, object[]) Constructor - -Initializes the [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') with the identifier of the syntax used. - -```csharp -public StringSyntaxAttribute(string syntax, params object?[] arguments); -``` -#### Parameters - - - -`syntax` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The syntax identifier. - - - -`arguments` [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Optional arguments associated with the specific syntax employed. -### Fields - - - -## StringSyntaxAttribute.CompositeFormat Field - -The syntax identifier for strings containing composite formats for string formatting. - -```csharp -public const string CompositeFormat = CompositeFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.DateOnlyFormat Field - -The syntax identifier for strings containing date format specifiers. - -```csharp -public const string DateOnlyFormat = DateOnlyFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.DateTimeFormat Field - -The syntax identifier for strings containing date and time format specifiers. - -```csharp -public const string DateTimeFormat = DateTimeFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.EnumFormat Field - -The syntax identifier for strings containing [System.Enum](https://docs.microsoft.com/en-us/dotnet/api/System.Enum 'System.Enum') format specifiers. - -```csharp -public const string EnumFormat = EnumFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.GuidFormat Field - -The syntax identifier for strings containing [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') format specifiers. - -```csharp -public const string GuidFormat = GuidFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Json Field - -The syntax identifier for strings containing JavaScript Object Notation (JSON). - -```csharp -public const string Json = Json; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.NumericFormat Field - -The syntax identifier for strings containing numeric format specifiers. - -```csharp -public const string NumericFormat = NumericFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Regex Field - -The syntax identifier for strings containing regular expressions. - -```csharp -public const string Regex = Regex; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.TimeOnlyFormat Field - -The syntax identifier for strings containing time format specifiers. - -```csharp -public const string TimeOnlyFormat = TimeOnlyFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.TimeSpanFormat Field - -The syntax identifier for strings containing [System.TimeSpan](https://docs.microsoft.com/en-us/dotnet/api/System.TimeSpan 'System.TimeSpan') format specifiers. - -```csharp -public const string TimeSpanFormat = TimeSpanFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Uri Field - -The syntax identifier for strings containing URIs. - -```csharp -public const string Uri = Uri; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Xml Field - -The syntax identifier for strings containing XML. - -```csharp -public const string Xml = Xml; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Properties - - - -## StringSyntaxAttribute.Arguments Property - -Optional arguments associated with the specific syntax employed. - -```csharp -public object?[] Arguments { get; } -``` - -#### Property Value -[System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## StringSyntaxAttribute.Syntax Property - -Gets the identifier of the syntax used. - -```csharp -public string Syntax { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md deleted file mode 100644 index 67ed8ec..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md +++ /dev/null @@ -1,35 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## UnscopedRefAttribute Class - -Used to indicate a byref escapes and is not scoped. - -```csharp -internal sealed class UnscopedRefAttribute : System.Attribute -``` - -## UnscopedRefAttribute Class - -Used to indicate a byref escapes and is not scoped. - -```csharp -internal sealed class UnscopedRefAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 UnscopedRefAttribute - -### Remarks - -There are several cases where the C# compiler treats a [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') as implicitly -[scoped](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/scoped 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/scoped') - where the compiler does not allow the [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') to escape the method. - -For example: -1. [this](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this') for [struct](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct') instance methods. -2. [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') parameters that refer to [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref')[struct](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct') types. -3. [out](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out') parameters. - -This attribute is used in those instances where the [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') should be allowed to escape. - -Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for -API authors to understand the lifetime implications of applying this attribute and how it may impact their users. \ No newline at end of file diff --git a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.md b/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.md deleted file mode 100644 index 89e16e5..0000000 --- a/docs/netstandard2.0/System.Diagnostics.CodeAnalysis.md +++ /dev/null @@ -1,21 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Diagnostics.CodeAnalysis Namespace - -| Classes | | -| :--- | :--- | -| [AllowNullAttribute](System.Diagnostics.CodeAnalysis.AllowNullAttribute.md 'System.Diagnostics.CodeAnalysis.AllowNullAttribute') | Specifies that null is allowed as an input even if the corresponding type disallows it. | -| [DisallowNullAttribute](System.Diagnostics.CodeAnalysis.DisallowNullAttribute.md 'System.Diagnostics.CodeAnalysis.DisallowNullAttribute') | Specifies that null is disallowed as an input even if the corresponding type allows it. | -| [DoesNotReturnAttribute](System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.md 'System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute') | Applied to a method that will never return under any circumstance. | -| [DoesNotReturnIfAttribute](System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.md 'System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute') | Specifies that the method will not return if the associated Boolean parameter is passed the specified value. | -| [ExperimentalAttribute](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute') | Indicates that an API is experimental and it may change in the future. | -| [MaybeNullAttribute](System.Diagnostics.CodeAnalysis.MaybeNullAttribute.md 'System.Diagnostics.CodeAnalysis.MaybeNullAttribute') | Specifies that an output may be null even if the corresponding type disallows it. | -| [MaybeNullWhenAttribute](System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md 'System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute') | Specifies that when a method returns [ReturnValue](System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.ReturnValue'), the parameter may be null even if the corresponding type disallows it. | -| [MemberNotNullAttribute](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute') | Specifies that the method or property will ensure that the listed field and property members have not-null values. | -| [MemberNotNullWhenAttribute](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute') | Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition. | -| [NotNullAttribute](System.Diagnostics.CodeAnalysis.NotNullAttribute.md 'System.Diagnostics.CodeAnalysis.NotNullAttribute') | Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns. | -| [NotNullIfNotNullAttribute](System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.md 'System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute') | Specifies that the output will be non-null if the named parameter is non-null. | -| [NotNullWhenAttribute](System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md 'System.Diagnostics.CodeAnalysis.NotNullWhenAttribute') | Specifies that when a method returns [ReturnValue](System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.ReturnValue'), the parameter will not be null even if the corresponding type allows it. | -| [SetsRequiredMembersAttribute](System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md 'System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute') | Specifies that this constructor sets all required members for the current type, and callers do not need to set any required members themselves. | -| [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') | Specifies the syntax used in a string. | -| [UnscopedRefAttribute](System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md 'System.Diagnostics.CodeAnalysis.UnscopedRefAttribute') | Used to indicate a byref escapes and is not scoped. | diff --git a/docs/netstandard2.0/System.Index.md b/docs/netstandard2.0/System.Index.md deleted file mode 100644 index 65f619c..0000000 --- a/docs/netstandard2.0/System.Index.md +++ /dev/null @@ -1,253 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System](System.md 'System') - -## Index Struct - -Represent a type can be used to index a collection either from the start or the end. - -```csharp -internal readonly struct Index : -System.IEquatable -``` - -Implements [System.IEquatable<](https://docs.microsoft.com/en-us/dotnet/api/System.IEquatable-1 'System.IEquatable`1')[Index](System.Index.md 'System.Index')[>](https://docs.microsoft.com/en-us/dotnet/api/System.IEquatable-1 'System.IEquatable`1') - -### Remarks -Index is used by the C# compiler to support the new index syntax - -```csharp -int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ; -int lastElement = someArray[^1]; // lastElement = 5 -``` -### Constructors - - - -## Index(int, bool) Constructor - -Construct an Index using a value and indicating if the index is from the start or from the end. - -```csharp -public Index(int value, bool fromEnd=false); -``` -#### Parameters - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -The index value. it has to be zero or positive number. - - - -`fromEnd` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Indicating if the index is from the start or from the end. - -### Remarks -If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element. -### Properties - - - -## Index.End Property - -Create an Index pointing at beyond last element. - -```csharp -public static System.Index End { get; } -``` - -#### Property Value -[Index](System.Index.md 'System.Index') - - - -## Index.IsFromEnd Property - -Indicates whether the index is from the start or the end. - -```csharp -public bool IsFromEnd { get; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Index.Start Property - -Create an Index pointing at first element. - -```csharp -public static System.Index Start { get; } -``` - -#### Property Value -[Index](System.Index.md 'System.Index') - - - -## Index.Value Property - -Returns the index value. - -```csharp -public int Value { get; } -``` - -#### Property Value -[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') -### Methods - - - -## Index.Equals(object) Method - -Indicates whether the current Index object is equal to another object of the same type. - -```csharp -public override bool Equals(object? value); -``` -#### Parameters - - - -`value` [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') - -An object to compare with this object - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Index.Equals(Index) Method - -Indicates whether the current Index object is equal to another Index object. - -```csharp -public bool Equals(System.Index other); -``` -#### Parameters - - - -`other` [Index](System.Index.md 'System.Index') - -An object to compare with this object - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Index.FromEnd(int) Method - -Create an Index from the end at the position indicated by the value. - -```csharp -public static System.Index FromEnd(int value); -``` -#### Parameters - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -The index value from the end. - -#### Returns -[Index](System.Index.md 'System.Index') - - - -## Index.FromStart(int) Method - -Create an Index from the start at the position indicated by the value. - -```csharp -public static System.Index FromStart(int value); -``` -#### Parameters - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -The index value from the start. - -#### Returns -[Index](System.Index.md 'System.Index') - - - -## Index.GetHashCode() Method - -Returns the hash code for this instance. - -```csharp -public override int GetHashCode(); -``` - -#### Returns -[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - - - -## Index.GetOffset(int) Method - -Calculate the offset from the start using the giving collection length. - -```csharp -public int GetOffset(int length); -``` -#### Parameters - - - -`length` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -The length of the collection that the Index will be used with. length has to be a positive value - -#### Returns -[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -### Remarks -For performance reason, we don't validate the input length parameter and the returned offset value against negative values. -we don't validate either the returned offset is greater than the input length. -It is expected Index will be used with collections which always have non negative length/count. If the returned offset is negative and -then used to index a collection will get out of range exception which will be same affect as the validation. - - - -## Index.ToString() Method - -Converts the value of the current Index object to its equivalent string representation. - -```csharp -public override string ToString(); -``` - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Operators - - - -## Index.implicit operator Index(int) Operator - -Converts integer number to an Index. - -```csharp -public static System.Index implicit operator Index(int value); -``` -#### Parameters - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -#### Returns -[Index](System.Index.md 'System.Index') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Range.md b/docs/netstandard2.0/System.Range.md deleted file mode 100644 index 84ad808..0000000 --- a/docs/netstandard2.0/System.Range.md +++ /dev/null @@ -1,214 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System](System.md 'System') - -## Range Struct - -Represent a range has start and end indexes. - -```csharp -internal readonly struct Range : -System.IEquatable -``` - -Implements [System.IEquatable<](https://docs.microsoft.com/en-us/dotnet/api/System.IEquatable-1 'System.IEquatable`1')[Range](System.Range.md 'System.Range')[>](https://docs.microsoft.com/en-us/dotnet/api/System.IEquatable-1 'System.IEquatable`1') - -### Remarks -Range is used by the C# compiler to support the range syntax. - -```csharp -int[] someArray = new int[5] { 1, 2, 3, 4, 5 }; -int[] subArray1 = someArray[0..2]; // { 1, 2 } -int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 } -``` -### Constructors - - - -## Range(Index, Index) Constructor - -Construct a Range object using the start and end indexes. - -```csharp -public Range(System.Index start, System.Index end); -``` -#### Parameters - - - -`start` [Index](System.Index.md 'System.Index') - -Represent the inclusive start index of the range. - - - -`end` [Index](System.Index.md 'System.Index') - -Represent the exclusive end index of the range. -### Properties - - - -## Range.All Property - -Create a Range object starting from first element to the end. - -```csharp -public static System.Range All { get; } -``` - -#### Property Value -[Range](System.Range.md 'System.Range') - - - -## Range.End Property - -Represent the exclusive end index of the Range. - -```csharp -public System.Index End { get; } -``` - -#### Property Value -[Index](System.Index.md 'System.Index') - - - -## Range.Start Property - -Represent the inclusive start index of the Range. - -```csharp -public System.Index Start { get; } -``` - -#### Property Value -[Index](System.Index.md 'System.Index') -### Methods - - - -## Range.EndAt(Index) Method - -Create a Range object starting from first element in the collection to the end Index. - -```csharp -public static System.Range EndAt(System.Index end); -``` -#### Parameters - - - -`end` [Index](System.Index.md 'System.Index') - -#### Returns -[Range](System.Range.md 'System.Range') - - - -## Range.Equals(object) Method - -Indicates whether the current Range object is equal to another object of the same type. - -```csharp -public override bool Equals(object? value); -``` -#### Parameters - - - -`value` [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') - -An object to compare with this object - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Range.Equals(Range) Method - -Indicates whether the current Range object is equal to another Range object. - -```csharp -public bool Equals(System.Range other); -``` -#### Parameters - - - -`other` [Range](System.Range.md 'System.Range') - -An object to compare with this object - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Range.GetHashCode() Method - -Returns the hash code for this instance. - -```csharp -public override int GetHashCode(); -``` - -#### Returns -[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - - - -## Range.GetOffsetAndLength(int) Method - -Calculate the start offset and length of range object using a collection length. - -```csharp -public (int Offset,int Length) GetOffsetAndLength(int length); -``` -#### Parameters - - - -`length` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -The length of the collection that the range will be used with. length has to be a positive value. - -#### Returns -[<](https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple 'System.ValueTuple')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[,](https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple 'System.ValueTuple')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ValueTuple 'System.ValueTuple') - -### Remarks -For performance reason, we don't validate the input length parameter against negative values. -It is expected Range will be used with collections which always have non negative length/count. -We validate the range is inside the length scope though. - - - -## Range.StartAt(Index) Method - -Create a Range object starting from start index to the end of the collection. - -```csharp -public static System.Range StartAt(System.Index start); -``` -#### Parameters - - - -`start` [Index](System.Index.md 'System.Index') - -#### Returns -[Range](System.Range.md 'System.Range') - - - -## Range.ToString() Method - -Converts the value of the current Range object to its equivalent string representation. - -```csharp -public override string ToString(); -``` - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md deleted file mode 100644 index 1cf4f0a..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md +++ /dev/null @@ -1,56 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CallerArgumentExpressionAttribute Class - -An attribute that allows parameters to receive the expression of other parameters. - -```csharp -internal sealed class CallerArgumentExpressionAttribute : System.Attribute -``` -- *Constructors* - - **[CallerArgumentExpressionAttribute(string)](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md#System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.CallerArgumentExpressionAttribute(string) 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.CallerArgumentExpressionAttribute(string)')** -- *Properties* - - **[ParameterName](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md#System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.ParameterName 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.ParameterName')** - -## CallerArgumentExpressionAttribute Class - -An attribute that allows parameters to receive the expression of other parameters. - -```csharp -internal sealed class CallerArgumentExpressionAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CallerArgumentExpressionAttribute -### Constructors - - - -## CallerArgumentExpressionAttribute(string) Constructor - -Initializes a new instance of the [CallerArgumentExpressionAttribute](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute') class. - -```csharp -public CallerArgumentExpressionAttribute(string parameterName); -``` -#### Parameters - - - -`parameterName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The condition parameter value. -### Properties - - - -## CallerArgumentExpressionAttribute.ParameterName Property - -Gets the parameter name the expression is retrieved from. - -```csharp -public string ParameterName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md deleted file mode 100644 index 670cd24..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.CollectionBuilderAttribute.md +++ /dev/null @@ -1,81 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CollectionBuilderAttribute Class - -```csharp -internal sealed class CollectionBuilderAttribute : System.Attribute -``` -- *Constructors* - - **[CollectionBuilderAttribute(Type, string)](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string) 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string)')** -- *Properties* - - **[BuilderType](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.BuilderType 'System.Runtime.CompilerServices.CollectionBuilderAttribute.BuilderType')** - - **[MethodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.MethodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.MethodName')** - -## CollectionBuilderAttribute Class - -```csharp -internal sealed class CollectionBuilderAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CollectionBuilderAttribute -### Constructors - - - -## CollectionBuilderAttribute(Type, string) Constructor - -Initialize the attribute to refer to the [methodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).methodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).methodName') method on the [builderType](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).builderType 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).builderType') type. - -```csharp -public CollectionBuilderAttribute(System.Type builderType, string methodName); -``` -#### Parameters - - - -`builderType` [System.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System.Type') - -The type of the builder to use to construct the collection. - - - -`methodName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the method on the builder to use to construct the collection. - -### Remarks -[methodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).methodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).methodName') must refer to a static method that accepts a single parameter of - type [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') and returns an instance of the collection being built containing - a copy of the data from that span. In future releases of .NET, additional patterns may be supported. -### Properties - - - -## CollectionBuilderAttribute.BuilderType Property - -Gets the type of the builder to use to construct the collection. - -```csharp -public System.Type BuilderType { get; } -``` - -#### Property Value -[System.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System.Type') - - - -## CollectionBuilderAttribute.MethodName Property - -Gets the name of the method on the builder to use to construct the collection. - -```csharp -public string MethodName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -### Remarks -This should match the metadata name of the target method. -For example, this might be ".ctor" if targeting the type's constructor. \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md deleted file mode 100644 index 38e3d73..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md +++ /dev/null @@ -1,100 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CompilerFeatureRequiredAttribute Class - -Indicates that compiler support for a particular feature is required for the location where this attribute is applied. - -```csharp -internal sealed class CompilerFeatureRequiredAttribute : System.Attribute -``` -- *Constructors* - - **[CompilerFeatureRequiredAttribute(string)](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute(string) 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute(string)')** -- *Fields* - - **[RefStructs](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs')** - - **[RequiredMembers](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers')** -- *Properties* - - **[FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName')** - - **[IsOptional](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional')** - -## CompilerFeatureRequiredAttribute Class - -Indicates that compiler support for a particular feature is required for the location where this attribute is applied. - -```csharp -internal sealed class CompilerFeatureRequiredAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CompilerFeatureRequiredAttribute -### Constructors - - - -## CompilerFeatureRequiredAttribute(string) Constructor - -Creates a new instance of the [CompilerFeatureRequiredAttribute](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute') type. - -```csharp -public CompilerFeatureRequiredAttribute(string featureName); -``` -#### Parameters - - - -`featureName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the feature to indicate. -### Fields - - - -## CompilerFeatureRequiredAttribute.RefStructs Field - -The [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName') used for the ref structs C# feature. - -```csharp -public const string RefStructs = RefStructs; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## CompilerFeatureRequiredAttribute.RequiredMembers Field - -The [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName') used for the required members C# feature. - -```csharp -public const string RequiredMembers = RequiredMembers; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Properties - - - -## CompilerFeatureRequiredAttribute.FeatureName Property - -The name of the compiler feature. - -```csharp -public string FeatureName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## CompilerFeatureRequiredAttribute.IsOptional Property - -If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName'). - -```csharp -public bool IsOptional { get; set; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md deleted file mode 100644 index 2072f92..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md +++ /dev/null @@ -1,83 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## InterpolatedStringHandlerArgumentAttribute Class - -Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. - -```csharp -internal sealed class InterpolatedStringHandlerArgumentAttribute : System.Attribute -``` -- *Constructors* - - **[InterpolatedStringHandlerArgumentAttribute(string)](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md#System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string) 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string)')** - - **[InterpolatedStringHandlerArgumentAttribute(string[])](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md#System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string[]) 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string[])')** -- *Properties* - - **[Arguments](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md#System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.Arguments 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.Arguments')** - -## InterpolatedStringHandlerArgumentAttribute Class - -Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. - -```csharp -internal sealed class InterpolatedStringHandlerArgumentAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 InterpolatedStringHandlerArgumentAttribute -### Constructors - - - -## InterpolatedStringHandlerArgumentAttribute(string) Constructor - -Initializes a new instance of the [InterpolatedStringHandlerArgumentAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute') class. - -```csharp -public InterpolatedStringHandlerArgumentAttribute(string argument); -``` -#### Parameters - - - -`argument` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the argument that should be passed to the handler. - -### Remarks -[null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') may be used as the name of the receiver in an instance method. - - - -## InterpolatedStringHandlerArgumentAttribute(string[]) Constructor - -Initializes a new instance of the [InterpolatedStringHandlerArgumentAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute') class. - -```csharp -public InterpolatedStringHandlerArgumentAttribute(params string[] arguments); -``` -#### Parameters - - - -`arguments` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -The names of the arguments that should be passed to the handler. - -### Remarks -[null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') may be used as the name of the receiver in an instance method. -### Properties - - - -## InterpolatedStringHandlerArgumentAttribute.Arguments Property - -Gets the names of the arguments that should be passed to the handler. - -```csharp -public string[] Arguments { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -### Remarks -[null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') may be used as the name of the receiver in an instance method. \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md deleted file mode 100644 index 378ca90..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## InterpolatedStringHandlerAttribute Class - -Indicates the attributed type is to be used as an interpolated string handler. - -```csharp -internal sealed class InterpolatedStringHandlerAttribute : System.Attribute -``` - -## InterpolatedStringHandlerAttribute Class - -Indicates the attributed type is to be used as an interpolated string handler. - -```csharp -internal sealed class InterpolatedStringHandlerAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 InterpolatedStringHandlerAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.IsExternalInit.md b/docs/netstandard2.0/System.Runtime.CompilerServices.IsExternalInit.md deleted file mode 100644 index a78e476..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.IsExternalInit.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## IsExternalInit Class - -Reserved to be used by the compiler for tracking metadata. -This class should not be used by developers in source code. - -```csharp -internal static class IsExternalInit -``` - -## IsExternalInit Class - -Reserved to be used by the compiler for tracking metadata. -This class should not be used by developers in source code. - -```csharp -internal static class IsExternalInit -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 IsExternalInit \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.ModuleInitializerAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.ModuleInitializerAttribute.md deleted file mode 100644 index ab15e51..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.ModuleInitializerAttribute.md +++ /dev/null @@ -1,38 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## ModuleInitializerAttribute Class - -Used to indicate to the compiler that a method should be called -in its containing module's initializer. - -```csharp -internal sealed class ModuleInitializerAttribute : System.Attribute -``` - -## ModuleInitializerAttribute Class - -Used to indicate to the compiler that a method should be called -in its containing module's initializer. - -```csharp -internal sealed class ModuleInitializerAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 ModuleInitializerAttribute - -### Remarks -When one or more valid methods -with this attribute are found in a compilation, the compiler will -emit a module initializer which calls each of the attributed methods. - -Certain requirements are imposed on any method targeted with this attribute: -- The method must be `static`. -- The method must be an ordinary member method, as opposed to a property accessor, constructor, local function, etc. -- The method must be parameterless. -- The method must return `void`. -- The method must not be generic or be contained in a generic type. -- The method's effective accessibility must be `internal` or `public`. - -The specification for module initializers in the .NET runtime can be found here: -https://github.com/dotnet/runtime/blob/main/docs/design/specs/Ecma-335-Augments.md#module-initializer \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md deleted file mode 100644 index 3f430ce..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.RequiredMemberAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## RequiredMemberAttribute Class - -Specifies that a type has required members or that a member is required. - -```csharp -internal sealed class RequiredMemberAttribute : System.Attribute -``` - -## RequiredMemberAttribute Class - -Specifies that a type has required members or that a member is required. - -```csharp -internal sealed class RequiredMemberAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiredMemberAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md deleted file mode 100644 index 656282c..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.RequiresLocationAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## RequiresLocationAttribute Class - -Reserved for use by a compiler for tracking metadata. -This attribute should not be used by developers in source code. - -```csharp -internal sealed class RequiresLocationAttribute : System.Attribute -``` - -## RequiresLocationAttribute Class - -Reserved for use by a compiler for tracking metadata. -This attribute should not be used by developers in source code. - -```csharp -internal sealed class RequiresLocationAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiresLocationAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md b/docs/netstandard2.0/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md deleted file mode 100644 index 024964a..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## SkipLocalsInitAttribute Class - -Used to indicate to the compiler that the `.locals init` flag should not be set in method headers. - -```csharp -internal sealed class SkipLocalsInitAttribute : System.Attribute -``` - -## SkipLocalsInitAttribute Class - -Used to indicate to the compiler that the `.locals init` flag should not be set in method headers. - -```csharp -internal sealed class SkipLocalsInitAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 SkipLocalsInitAttribute \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.CompilerServices.md b/docs/netstandard2.0/System.Runtime.CompilerServices.md deleted file mode 100644 index 5588ad4..0000000 --- a/docs/netstandard2.0/System.Runtime.CompilerServices.md +++ /dev/null @@ -1,16 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Runtime.CompilerServices Namespace - -| Classes | | -| :--- | :--- | -| [CallerArgumentExpressionAttribute](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute') | An attribute that allows parameters to receive the expression of other parameters. | -| [CollectionBuilderAttribute](System.Runtime.CompilerServices.CollectionBuilderAttribute.md 'System.Runtime.CompilerServices.CollectionBuilderAttribute') | | -| [CompilerFeatureRequiredAttribute](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute') | Indicates that compiler support for a particular feature is required for the location where this attribute is applied. | -| [InterpolatedStringHandlerArgumentAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute') | Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. | -| [InterpolatedStringHandlerAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute') | Indicates the attributed type is to be used as an interpolated string handler. | -| [IsExternalInit](System.Runtime.CompilerServices.IsExternalInit.md 'System.Runtime.CompilerServices.IsExternalInit') | Reserved to be used by the compiler for tracking metadata. This class should not be used by developers in source code. | -| [ModuleInitializerAttribute](System.Runtime.CompilerServices.ModuleInitializerAttribute.md 'System.Runtime.CompilerServices.ModuleInitializerAttribute') | Used to indicate to the compiler that a method should be called in its containing module's initializer. | -| [RequiredMemberAttribute](System.Runtime.CompilerServices.RequiredMemberAttribute.md 'System.Runtime.CompilerServices.RequiredMemberAttribute') | Specifies that a type has required members or that a member is required. | -| [RequiresLocationAttribute](System.Runtime.CompilerServices.RequiresLocationAttribute.md 'System.Runtime.CompilerServices.RequiresLocationAttribute') | Reserved for use by a compiler for tracking metadata. This attribute should not be used by developers in source code. | -| [SkipLocalsInitAttribute](System.Runtime.CompilerServices.SkipLocalsInitAttribute.md 'System.Runtime.CompilerServices.SkipLocalsInitAttribute') | Used to indicate to the compiler that the `.locals init` flag should not be set in method headers. | diff --git a/docs/netstandard2.0/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md b/docs/netstandard2.0/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md deleted file mode 100644 index c878e7a..0000000 --- a/docs/netstandard2.0/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md +++ /dev/null @@ -1,77 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') - -## RequiresPreviewFeaturesAttribute Class - -```csharp -internal sealed class RequiresPreviewFeaturesAttribute : System.Attribute -``` -- *Constructors* - - **[RequiresPreviewFeaturesAttribute()](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute() 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute()')** - - **[RequiresPreviewFeaturesAttribute(string)](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute(string) 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute(string)')** -- *Properties* - - **[Message](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Message 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Message')** - - **[Url](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Url 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Url')** - -## RequiresPreviewFeaturesAttribute Class - -```csharp -internal sealed class RequiresPreviewFeaturesAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiresPreviewFeaturesAttribute -### Constructors - - - -## RequiresPreviewFeaturesAttribute() Constructor - -Initializes a new instance of the [RequiresPreviewFeaturesAttribute](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute') class. - -```csharp -public RequiresPreviewFeaturesAttribute(); -``` - - - -## RequiresPreviewFeaturesAttribute(string) Constructor - -Initializes a new instance of the [RequiresPreviewFeaturesAttribute](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute') class with the specified message. - -```csharp -public RequiresPreviewFeaturesAttribute(string? message); -``` -#### Parameters - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -An optional message associated with this attribute instance. -### Properties - - - -## RequiresPreviewFeaturesAttribute.Message Property - -Returns the optional message associated with this attribute instance. - -```csharp -public string? Message { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## RequiresPreviewFeaturesAttribute.Url Property - -Returns the optional URL associated with this attribute instance. - -```csharp -public string? Url { get; set; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.0/System.Runtime.Versioning.md b/docs/netstandard2.0/System.Runtime.Versioning.md deleted file mode 100644 index a7762d5..0000000 --- a/docs/netstandard2.0/System.Runtime.Versioning.md +++ /dev/null @@ -1,7 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Runtime.Versioning Namespace - -| Classes | | -| :--- | :--- | -| [RequiresPreviewFeaturesAttribute](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute') | | diff --git a/docs/netstandard2.0/System.md b/docs/netstandard2.0/System.md deleted file mode 100644 index ee6f54e..0000000 --- a/docs/netstandard2.0/System.md +++ /dev/null @@ -1,8 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System Namespace - -| Structs | | -| :--- | :--- | -| [Index](System.Index.md 'System.Index') | Represent a type can be used to index a collection either from the start or the end. | -| [Range](System.Range.md 'System.Range') | Represent a range has start and end indexes. | diff --git a/docs/netstandard2.0/index.md b/docs/netstandard2.0/index.md deleted file mode 100644 index 909d085..0000000 --- a/docs/netstandard2.0/index.md +++ /dev/null @@ -1,15 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System](System.md 'System') | | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | -| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index a08d9d6..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static System.Threading.Tasks.ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 593ffdd..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index b8f0ba3..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index 2321c3b..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,714 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method - -Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. - -```csharp -public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') - -#### Returns -[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md deleted file mode 100644 index cdfb380..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md +++ /dev/null @@ -1,650 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` -- *Methods* - - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** - - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** - - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan -### Methods - - - -## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out bool value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index dc2cc7a..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,863 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index 314805e..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md deleted file mode 100644 index 524532a..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md +++ /dev/null @@ -1,86 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## ExperimentalAttribute Class - -Indicates that an API is experimental and it may change in the future. - -```csharp -internal sealed class ExperimentalAttribute : System.Attribute -``` -- *Constructors* - - **[ExperimentalAttribute(string)](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string) 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.ExperimentalAttribute(string)')** -- *Properties* - - **[DiagnosticId](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.DiagnosticId 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.DiagnosticId')** - - **[UrlFormat](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md#System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute.UrlFormat')** - -## ExperimentalAttribute Class - -Indicates that an API is experimental and it may change in the future. - -```csharp -internal sealed class ExperimentalAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 ExperimentalAttribute - -### Remarks -This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental -feature is used. Authors can use this attribute to ship preview features in their assemblies. -### Constructors - - - -## ExperimentalAttribute(string) Constructor - -Initializes a new instance of the [ExperimentalAttribute](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute') class, -specifying the ID that the compiler will use when reporting a use of the API the attribute applies to. - -```csharp -public ExperimentalAttribute(string diagnosticId); -``` -#### Parameters - - - -`diagnosticId` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The ID that the compiler will use when reporting a use of the API the attribute applies to. -### Properties - - - -## ExperimentalAttribute.DiagnosticId Property - -Gets the ID that the compiler will use when reporting a use of the API the attribute applies to. - -```csharp -public string DiagnosticId { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -The unique diagnostic ID. - -### Remarks -The diagnostic ID is shown in build output for warnings and errors. - -This property represents the unique ID that can be used to suppress the warnings or errors, if needed. - - - -## ExperimentalAttribute.UrlFormat Property - -Gets or sets the URL for corresponding documentation. -The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID. - -```csharp -public string? UrlFormat { get; set; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -The format string that represents a URL to corresponding documentation. - -### Remarks -An example format string is `https://contoso.com/obsoletion-warnings/{0}`. \ No newline at end of file diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md deleted file mode 100644 index 8a75847..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md +++ /dev/null @@ -1,74 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## MemberNotNullAttribute Class - -Specifies that the method or property will ensure that the listed field and property members have not-null values. - -```csharp -internal sealed class MemberNotNullAttribute : System.Attribute -``` -- *Constructors* - - **[MemberNotNullAttribute(string)](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string) 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string)')** - - **[MemberNotNullAttribute(string[])](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string[]) 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.MemberNotNullAttribute(string[])')** -- *Properties* - - **[Members](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.Members 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.Members')** - -## MemberNotNullAttribute Class - -Specifies that the method or property will ensure that the listed field and property members have not-null values. - -```csharp -internal sealed class MemberNotNullAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 MemberNotNullAttribute -### Constructors - - - -## MemberNotNullAttribute(string) Constructor - -Initializes the attribute with a field or property member. - -```csharp -public MemberNotNullAttribute(string member); -``` -#### Parameters - - - -`member` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The field or property member that is promised to be not-null. - - - -## MemberNotNullAttribute(string[]) Constructor - -Initializes the attribute with the list of field and property members. - -```csharp -public MemberNotNullAttribute(params string[] members); -``` -#### Parameters - - - -`members` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -The list of field and property members that are promised to be not-null. -### Properties - - - -## MemberNotNullAttribute.Members Property - -Gets field or property member names. - -```csharp -public string[] Members { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') \ No newline at end of file diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md deleted file mode 100644 index 6c130c3..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md +++ /dev/null @@ -1,102 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## MemberNotNullWhenAttribute Class - -Specifies that the method or property will ensure that the listed field and property -members have not-null values when returning with the specified return value condition. - -```csharp -internal sealed class MemberNotNullWhenAttribute : System.Attribute -``` -- *Constructors* - - **[MemberNotNullWhenAttribute(bool, string)](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool,string) 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool, string)')** - - **[MemberNotNullWhenAttribute(bool, string[])](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool,string[]) 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.MemberNotNullWhenAttribute(bool, string[])')** -- *Properties* - - **[Members](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.Members 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.Members')** - - **[ReturnValue](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md#System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.ReturnValue 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.ReturnValue')** - -## MemberNotNullWhenAttribute Class - -Specifies that the method or property will ensure that the listed field and property -members have not-null values when returning with the specified return value condition. - -```csharp -internal sealed class MemberNotNullWhenAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 MemberNotNullWhenAttribute -### Constructors - - - -## MemberNotNullWhenAttribute(bool, string) Constructor - -Initializes the attribute with the specified return value condition and a field or property member. - -```csharp -public MemberNotNullWhenAttribute(bool returnValue, string member); -``` -#### Parameters - - - -`returnValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The return value condition. If the method returns this value, the associated parameter will not be null. - - - -`member` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The field or property member that is promised to be not-null. - - - -## MemberNotNullWhenAttribute(bool, string[]) Constructor - -Initializes the attribute with the specified return value condition and list of field and property members. - -```csharp -public MemberNotNullWhenAttribute(bool returnValue, params string[] members); -``` -#### Parameters - - - -`returnValue` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -The return value condition. If the method returns this value, the associated parameter will not be null. - - - -`members` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -The list of field and property members that are promised to be not-null. -### Properties - - - -## MemberNotNullWhenAttribute.Members Property - -Gets field or property member names. - -```csharp -public string[] Members { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## MemberNotNullWhenAttribute.ReturnValue Property - -Gets the return value condition. - -```csharp -public bool ReturnValue { get; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md deleted file mode 100644 index fc458cf..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## SetsRequiredMembersAttribute Class - -Specifies that this constructor sets all required members for the current type, -and callers do not need to set any required members themselves. - -```csharp -internal sealed class SetsRequiredMembersAttribute : System.Attribute -``` - -## SetsRequiredMembersAttribute Class - -Specifies that this constructor sets all required members for the current type, -and callers do not need to set any required members themselves. - -```csharp -internal sealed class SetsRequiredMembersAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 SetsRequiredMembersAttribute \ No newline at end of file diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md deleted file mode 100644 index dcc7248..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md +++ /dev/null @@ -1,264 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## StringSyntaxAttribute Class - -Specifies the syntax used in a string. - -```csharp -internal sealed class StringSyntaxAttribute : System.Attribute -``` -- *Constructors* - - **[StringSyntaxAttribute(string)](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string) 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string)')** - - **[StringSyntaxAttribute(string, object[])](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string,object[]) 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.StringSyntaxAttribute(string, object[])')** -- *Fields* - - **[CompositeFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.CompositeFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.CompositeFormat')** - - **[DateOnlyFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateOnlyFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateOnlyFormat')** - - **[DateTimeFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateTimeFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.DateTimeFormat')** - - **[EnumFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.EnumFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.EnumFormat')** - - **[GuidFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.GuidFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.GuidFormat')** - - **[Json](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Json 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Json')** - - **[NumericFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.NumericFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.NumericFormat')** - - **[Regex](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Regex')** - - **[TimeOnlyFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeOnlyFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeOnlyFormat')** - - **[TimeSpanFormat](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeSpanFormat 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.TimeSpanFormat')** - - **[Uri](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Uri 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Uri')** - - **[Xml](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Xml 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Xml')** -- *Properties* - - **[Arguments](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Arguments 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Arguments')** - - **[Syntax](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md#System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Syntax 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.Syntax')** - -## StringSyntaxAttribute Class - -Specifies the syntax used in a string. - -```csharp -internal sealed class StringSyntaxAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 StringSyntaxAttribute -### Constructors - - - -## StringSyntaxAttribute(string) Constructor - -Initializes the [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') with the identifier of the syntax used. - -```csharp -public StringSyntaxAttribute(string syntax); -``` -#### Parameters - - - -`syntax` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The syntax identifier. - - - -## StringSyntaxAttribute(string, object[]) Constructor - -Initializes the [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') with the identifier of the syntax used. - -```csharp -public StringSyntaxAttribute(string syntax, params object?[] arguments); -``` -#### Parameters - - - -`syntax` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The syntax identifier. - - - -`arguments` [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Optional arguments associated with the specific syntax employed. -### Fields - - - -## StringSyntaxAttribute.CompositeFormat Field - -The syntax identifier for strings containing composite formats for string formatting. - -```csharp -public const string CompositeFormat = CompositeFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.DateOnlyFormat Field - -The syntax identifier for strings containing date format specifiers. - -```csharp -public const string DateOnlyFormat = DateOnlyFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.DateTimeFormat Field - -The syntax identifier for strings containing date and time format specifiers. - -```csharp -public const string DateTimeFormat = DateTimeFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.EnumFormat Field - -The syntax identifier for strings containing [System.Enum](https://docs.microsoft.com/en-us/dotnet/api/System.Enum 'System.Enum') format specifiers. - -```csharp -public const string EnumFormat = EnumFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.GuidFormat Field - -The syntax identifier for strings containing [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') format specifiers. - -```csharp -public const string GuidFormat = GuidFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Json Field - -The syntax identifier for strings containing JavaScript Object Notation (JSON). - -```csharp -public const string Json = Json; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.NumericFormat Field - -The syntax identifier for strings containing numeric format specifiers. - -```csharp -public const string NumericFormat = NumericFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Regex Field - -The syntax identifier for strings containing regular expressions. - -```csharp -public const string Regex = Regex; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.TimeOnlyFormat Field - -The syntax identifier for strings containing time format specifiers. - -```csharp -public const string TimeOnlyFormat = TimeOnlyFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.TimeSpanFormat Field - -The syntax identifier for strings containing [System.TimeSpan](https://docs.microsoft.com/en-us/dotnet/api/System.TimeSpan 'System.TimeSpan') format specifiers. - -```csharp -public const string TimeSpanFormat = TimeSpanFormat; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Uri Field - -The syntax identifier for strings containing URIs. - -```csharp -public const string Uri = Uri; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## StringSyntaxAttribute.Xml Field - -The syntax identifier for strings containing XML. - -```csharp -public const string Xml = Xml; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Properties - - - -## StringSyntaxAttribute.Arguments Property - -Optional arguments associated with the specific syntax employed. - -```csharp -public object?[] Arguments { get; } -``` - -#### Property Value -[System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## StringSyntaxAttribute.Syntax Property - -Gets the identifier of the syntax used. - -```csharp -public string Syntax { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md deleted file mode 100644 index 67ed8ec..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md +++ /dev/null @@ -1,35 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') - -## UnscopedRefAttribute Class - -Used to indicate a byref escapes and is not scoped. - -```csharp -internal sealed class UnscopedRefAttribute : System.Attribute -``` - -## UnscopedRefAttribute Class - -Used to indicate a byref escapes and is not scoped. - -```csharp -internal sealed class UnscopedRefAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 UnscopedRefAttribute - -### Remarks - -There are several cases where the C# compiler treats a [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') as implicitly -[scoped](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/scoped 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/scoped') - where the compiler does not allow the [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') to escape the method. - -For example: -1. [this](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/this') for [struct](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct') instance methods. -2. [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') parameters that refer to [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref')[struct](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/struct') types. -3. [out](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/out') parameters. - -This attribute is used in those instances where the [ref](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref') should be allowed to escape. - -Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for -API authors to understand the lifetime implications of applying this attribute and how it may impact their users. \ No newline at end of file diff --git a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.md b/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.md deleted file mode 100644 index 2310f82..0000000 --- a/docs/netstandard2.1/System.Diagnostics.CodeAnalysis.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Diagnostics.CodeAnalysis Namespace - -| Classes | | -| :--- | :--- | -| [ExperimentalAttribute](System.Diagnostics.CodeAnalysis.ExperimentalAttribute.md 'System.Diagnostics.CodeAnalysis.ExperimentalAttribute') | Indicates that an API is experimental and it may change in the future. | -| [MemberNotNullAttribute](System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.md 'System.Diagnostics.CodeAnalysis.MemberNotNullAttribute') | Specifies that the method or property will ensure that the listed field and property members have not-null values. | -| [MemberNotNullWhenAttribute](System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.md 'System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute') | Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition. | -| [SetsRequiredMembersAttribute](System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.md 'System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute') | Specifies that this constructor sets all required members for the current type, and callers do not need to set any required members themselves. | -| [StringSyntaxAttribute](System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.md 'System.Diagnostics.CodeAnalysis.StringSyntaxAttribute') | Specifies the syntax used in a string. | -| [UnscopedRefAttribute](System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.md 'System.Diagnostics.CodeAnalysis.UnscopedRefAttribute') | Used to indicate a byref escapes and is not scoped. | diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md deleted file mode 100644 index 1cf4f0a..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md +++ /dev/null @@ -1,56 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CallerArgumentExpressionAttribute Class - -An attribute that allows parameters to receive the expression of other parameters. - -```csharp -internal sealed class CallerArgumentExpressionAttribute : System.Attribute -``` -- *Constructors* - - **[CallerArgumentExpressionAttribute(string)](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md#System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.CallerArgumentExpressionAttribute(string) 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.CallerArgumentExpressionAttribute(string)')** -- *Properties* - - **[ParameterName](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md#System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.ParameterName 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.ParameterName')** - -## CallerArgumentExpressionAttribute Class - -An attribute that allows parameters to receive the expression of other parameters. - -```csharp -internal sealed class CallerArgumentExpressionAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CallerArgumentExpressionAttribute -### Constructors - - - -## CallerArgumentExpressionAttribute(string) Constructor - -Initializes a new instance of the [CallerArgumentExpressionAttribute](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute') class. - -```csharp -public CallerArgumentExpressionAttribute(string parameterName); -``` -#### Parameters - - - -`parameterName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The condition parameter value. -### Properties - - - -## CallerArgumentExpressionAttribute.ParameterName Property - -Gets the parameter name the expression is retrieved from. - -```csharp -public string ParameterName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.CollectionBuilderAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.CollectionBuilderAttribute.md deleted file mode 100644 index 670cd24..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.CollectionBuilderAttribute.md +++ /dev/null @@ -1,81 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CollectionBuilderAttribute Class - -```csharp -internal sealed class CollectionBuilderAttribute : System.Attribute -``` -- *Constructors* - - **[CollectionBuilderAttribute(Type, string)](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string) 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string)')** -- *Properties* - - **[BuilderType](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.BuilderType 'System.Runtime.CompilerServices.CollectionBuilderAttribute.BuilderType')** - - **[MethodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.MethodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.MethodName')** - -## CollectionBuilderAttribute Class - -```csharp -internal sealed class CollectionBuilderAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CollectionBuilderAttribute -### Constructors - - - -## CollectionBuilderAttribute(Type, string) Constructor - -Initialize the attribute to refer to the [methodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).methodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).methodName') method on the [builderType](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).builderType 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).builderType') type. - -```csharp -public CollectionBuilderAttribute(System.Type builderType, string methodName); -``` -#### Parameters - - - -`builderType` [System.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System.Type') - -The type of the builder to use to construct the collection. - - - -`methodName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the method on the builder to use to construct the collection. - -### Remarks -[methodName](System.Runtime.CompilerServices.CollectionBuilderAttribute.md#System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type,string).methodName 'System.Runtime.CompilerServices.CollectionBuilderAttribute.CollectionBuilderAttribute(System.Type, string).methodName') must refer to a static method that accepts a single parameter of - type [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') and returns an instance of the collection being built containing - a copy of the data from that span. In future releases of .NET, additional patterns may be supported. -### Properties - - - -## CollectionBuilderAttribute.BuilderType Property - -Gets the type of the builder to use to construct the collection. - -```csharp -public System.Type BuilderType { get; } -``` - -#### Property Value -[System.Type](https://docs.microsoft.com/en-us/dotnet/api/System.Type 'System.Type') - - - -## CollectionBuilderAttribute.MethodName Property - -Gets the name of the method on the builder to use to construct the collection. - -```csharp -public string MethodName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -### Remarks -This should match the metadata name of the target method. -For example, this might be ".ctor" if targeting the type's constructor. \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md deleted file mode 100644 index 38e3d73..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md +++ /dev/null @@ -1,100 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## CompilerFeatureRequiredAttribute Class - -Indicates that compiler support for a particular feature is required for the location where this attribute is applied. - -```csharp -internal sealed class CompilerFeatureRequiredAttribute : System.Attribute -``` -- *Constructors* - - **[CompilerFeatureRequiredAttribute(string)](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute(string) 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.CompilerFeatureRequiredAttribute(string)')** -- *Fields* - - **[RefStructs](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RefStructs')** - - **[RequiredMembers](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.RequiredMembers')** -- *Properties* - - **[FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName')** - - **[IsOptional](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.IsOptional')** - -## CompilerFeatureRequiredAttribute Class - -Indicates that compiler support for a particular feature is required for the location where this attribute is applied. - -```csharp -internal sealed class CompilerFeatureRequiredAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 CompilerFeatureRequiredAttribute -### Constructors - - - -## CompilerFeatureRequiredAttribute(string) Constructor - -Creates a new instance of the [CompilerFeatureRequiredAttribute](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute') type. - -```csharp -public CompilerFeatureRequiredAttribute(string featureName); -``` -#### Parameters - - - -`featureName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the feature to indicate. -### Fields - - - -## CompilerFeatureRequiredAttribute.RefStructs Field - -The [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName') used for the ref structs C# feature. - -```csharp -public const string RefStructs = RefStructs; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## CompilerFeatureRequiredAttribute.RequiredMembers Field - -The [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName') used for the required members C# feature. - -```csharp -public const string RequiredMembers = RequiredMembers; -``` - -#### Field Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') -### Properties - - - -## CompilerFeatureRequiredAttribute.FeatureName Property - -The name of the compiler feature. - -```csharp -public string FeatureName { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## CompilerFeatureRequiredAttribute.IsOptional Property - -If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand [FeatureName](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md#System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.FeatureName'). - -```csharp -public bool IsOptional { get; set; } -``` - -#### Property Value -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md deleted file mode 100644 index 2072f92..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md +++ /dev/null @@ -1,83 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## InterpolatedStringHandlerArgumentAttribute Class - -Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. - -```csharp -internal sealed class InterpolatedStringHandlerArgumentAttribute : System.Attribute -``` -- *Constructors* - - **[InterpolatedStringHandlerArgumentAttribute(string)](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md#System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string) 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string)')** - - **[InterpolatedStringHandlerArgumentAttribute(string[])](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md#System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string[]) 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.InterpolatedStringHandlerArgumentAttribute(string[])')** -- *Properties* - - **[Arguments](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md#System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.Arguments 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.Arguments')** - -## InterpolatedStringHandlerArgumentAttribute Class - -Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. - -```csharp -internal sealed class InterpolatedStringHandlerArgumentAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 InterpolatedStringHandlerArgumentAttribute -### Constructors - - - -## InterpolatedStringHandlerArgumentAttribute(string) Constructor - -Initializes a new instance of the [InterpolatedStringHandlerArgumentAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute') class. - -```csharp -public InterpolatedStringHandlerArgumentAttribute(string argument); -``` -#### Parameters - - - -`argument` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -The name of the argument that should be passed to the handler. - -### Remarks -[null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') may be used as the name of the receiver in an instance method. - - - -## InterpolatedStringHandlerArgumentAttribute(string[]) Constructor - -Initializes a new instance of the [InterpolatedStringHandlerArgumentAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute') class. - -```csharp -public InterpolatedStringHandlerArgumentAttribute(params string[] arguments); -``` -#### Parameters - - - -`arguments` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -The names of the arguments that should be passed to the handler. - -### Remarks -[null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') may be used as the name of the receiver in an instance method. -### Properties - - - -## InterpolatedStringHandlerArgumentAttribute.Arguments Property - -Gets the names of the arguments that should be passed to the handler. - -```csharp -public string[] Arguments { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -### Remarks -[null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') may be used as the name of the receiver in an instance method. \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md deleted file mode 100644 index 378ca90..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## InterpolatedStringHandlerAttribute Class - -Indicates the attributed type is to be used as an interpolated string handler. - -```csharp -internal sealed class InterpolatedStringHandlerAttribute : System.Attribute -``` - -## InterpolatedStringHandlerAttribute Class - -Indicates the attributed type is to be used as an interpolated string handler. - -```csharp -internal sealed class InterpolatedStringHandlerAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 InterpolatedStringHandlerAttribute \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.IsExternalInit.md b/docs/netstandard2.1/System.Runtime.CompilerServices.IsExternalInit.md deleted file mode 100644 index a78e476..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.IsExternalInit.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## IsExternalInit Class - -Reserved to be used by the compiler for tracking metadata. -This class should not be used by developers in source code. - -```csharp -internal static class IsExternalInit -``` - -## IsExternalInit Class - -Reserved to be used by the compiler for tracking metadata. -This class should not be used by developers in source code. - -```csharp -internal static class IsExternalInit -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 IsExternalInit \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.ModuleInitializerAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.ModuleInitializerAttribute.md deleted file mode 100644 index ab15e51..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.ModuleInitializerAttribute.md +++ /dev/null @@ -1,38 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## ModuleInitializerAttribute Class - -Used to indicate to the compiler that a method should be called -in its containing module's initializer. - -```csharp -internal sealed class ModuleInitializerAttribute : System.Attribute -``` - -## ModuleInitializerAttribute Class - -Used to indicate to the compiler that a method should be called -in its containing module's initializer. - -```csharp -internal sealed class ModuleInitializerAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 ModuleInitializerAttribute - -### Remarks -When one or more valid methods -with this attribute are found in a compilation, the compiler will -emit a module initializer which calls each of the attributed methods. - -Certain requirements are imposed on any method targeted with this attribute: -- The method must be `static`. -- The method must be an ordinary member method, as opposed to a property accessor, constructor, local function, etc. -- The method must be parameterless. -- The method must return `void`. -- The method must not be generic or be contained in a generic type. -- The method's effective accessibility must be `internal` or `public`. - -The specification for module initializers in the .NET runtime can be found here: -https://github.com/dotnet/runtime/blob/main/docs/design/specs/Ecma-335-Augments.md#module-initializer \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.RequiredMemberAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.RequiredMemberAttribute.md deleted file mode 100644 index 3f430ce..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.RequiredMemberAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## RequiredMemberAttribute Class - -Specifies that a type has required members or that a member is required. - -```csharp -internal sealed class RequiredMemberAttribute : System.Attribute -``` - -## RequiredMemberAttribute Class - -Specifies that a type has required members or that a member is required. - -```csharp -internal sealed class RequiredMemberAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiredMemberAttribute \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.RequiresLocationAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.RequiresLocationAttribute.md deleted file mode 100644 index 656282c..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.RequiresLocationAttribute.md +++ /dev/null @@ -1,22 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## RequiresLocationAttribute Class - -Reserved for use by a compiler for tracking metadata. -This attribute should not be used by developers in source code. - -```csharp -internal sealed class RequiresLocationAttribute : System.Attribute -``` - -## RequiresLocationAttribute Class - -Reserved for use by a compiler for tracking metadata. -This attribute should not be used by developers in source code. - -```csharp -internal sealed class RequiresLocationAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiresLocationAttribute \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md b/docs/netstandard2.1/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md deleted file mode 100644 index 024964a..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.SkipLocalsInitAttribute.md +++ /dev/null @@ -1,20 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') - -## SkipLocalsInitAttribute Class - -Used to indicate to the compiler that the `.locals init` flag should not be set in method headers. - -```csharp -internal sealed class SkipLocalsInitAttribute : System.Attribute -``` - -## SkipLocalsInitAttribute Class - -Used to indicate to the compiler that the `.locals init` flag should not be set in method headers. - -```csharp -internal sealed class SkipLocalsInitAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 SkipLocalsInitAttribute \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.CompilerServices.md b/docs/netstandard2.1/System.Runtime.CompilerServices.md deleted file mode 100644 index 5588ad4..0000000 --- a/docs/netstandard2.1/System.Runtime.CompilerServices.md +++ /dev/null @@ -1,16 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Runtime.CompilerServices Namespace - -| Classes | | -| :--- | :--- | -| [CallerArgumentExpressionAttribute](System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.md 'System.Runtime.CompilerServices.CallerArgumentExpressionAttribute') | An attribute that allows parameters to receive the expression of other parameters. | -| [CollectionBuilderAttribute](System.Runtime.CompilerServices.CollectionBuilderAttribute.md 'System.Runtime.CompilerServices.CollectionBuilderAttribute') | | -| [CompilerFeatureRequiredAttribute](System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.md 'System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute') | Indicates that compiler support for a particular feature is required for the location where this attribute is applied. | -| [InterpolatedStringHandlerArgumentAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute') | Indicates which arguments to a method involving an interpolated string handler should be passed to that handler. | -| [InterpolatedStringHandlerAttribute](System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.md 'System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute') | Indicates the attributed type is to be used as an interpolated string handler. | -| [IsExternalInit](System.Runtime.CompilerServices.IsExternalInit.md 'System.Runtime.CompilerServices.IsExternalInit') | Reserved to be used by the compiler for tracking metadata. This class should not be used by developers in source code. | -| [ModuleInitializerAttribute](System.Runtime.CompilerServices.ModuleInitializerAttribute.md 'System.Runtime.CompilerServices.ModuleInitializerAttribute') | Used to indicate to the compiler that a method should be called in its containing module's initializer. | -| [RequiredMemberAttribute](System.Runtime.CompilerServices.RequiredMemberAttribute.md 'System.Runtime.CompilerServices.RequiredMemberAttribute') | Specifies that a type has required members or that a member is required. | -| [RequiresLocationAttribute](System.Runtime.CompilerServices.RequiresLocationAttribute.md 'System.Runtime.CompilerServices.RequiresLocationAttribute') | Reserved for use by a compiler for tracking metadata. This attribute should not be used by developers in source code. | -| [SkipLocalsInitAttribute](System.Runtime.CompilerServices.SkipLocalsInitAttribute.md 'System.Runtime.CompilerServices.SkipLocalsInitAttribute') | Used to indicate to the compiler that the `.locals init` flag should not be set in method headers. | diff --git a/docs/netstandard2.1/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md b/docs/netstandard2.1/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md deleted file mode 100644 index c878e7a..0000000 --- a/docs/netstandard2.1/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md +++ /dev/null @@ -1,77 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') - -## RequiresPreviewFeaturesAttribute Class - -```csharp -internal sealed class RequiresPreviewFeaturesAttribute : System.Attribute -``` -- *Constructors* - - **[RequiresPreviewFeaturesAttribute()](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute() 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute()')** - - **[RequiresPreviewFeaturesAttribute(string)](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute(string) 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.RequiresPreviewFeaturesAttribute(string)')** -- *Properties* - - **[Message](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Message 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Message')** - - **[Url](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md#System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Url 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.Url')** - -## RequiresPreviewFeaturesAttribute Class - -```csharp -internal sealed class RequiresPreviewFeaturesAttribute : System.Attribute -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 [System.Attribute](https://docs.microsoft.com/en-us/dotnet/api/System.Attribute 'System.Attribute') 🡒 RequiresPreviewFeaturesAttribute -### Constructors - - - -## RequiresPreviewFeaturesAttribute() Constructor - -Initializes a new instance of the [RequiresPreviewFeaturesAttribute](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute') class. - -```csharp -public RequiresPreviewFeaturesAttribute(); -``` - - - -## RequiresPreviewFeaturesAttribute(string) Constructor - -Initializes a new instance of the [RequiresPreviewFeaturesAttribute](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute') class with the specified message. - -```csharp -public RequiresPreviewFeaturesAttribute(string? message); -``` -#### Parameters - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -An optional message associated with this attribute instance. -### Properties - - - -## RequiresPreviewFeaturesAttribute.Message Property - -Returns the optional message associated with this attribute instance. - -```csharp -public string? Message { get; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## RequiresPreviewFeaturesAttribute.Url Property - -Returns the optional URL associated with this attribute instance. - -```csharp -public string? Url { get; set; } -``` - -#### Property Value -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') \ No newline at end of file diff --git a/docs/netstandard2.1/System.Runtime.Versioning.md b/docs/netstandard2.1/System.Runtime.Versioning.md deleted file mode 100644 index a7762d5..0000000 --- a/docs/netstandard2.1/System.Runtime.Versioning.md +++ /dev/null @@ -1,7 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System.Runtime.Versioning Namespace - -| Classes | | -| :--- | :--- | -| [RequiresPreviewFeaturesAttribute](System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.md 'System.Runtime.Versioning.RequiresPreviewFeaturesAttribute') | | diff --git a/docs/netstandard2.1/index.md b/docs/netstandard2.1/index.md deleted file mode 100644 index 3f1a8bc..0000000 --- a/docs/netstandard2.1/index.md +++ /dev/null @@ -1,14 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | -| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | From be0f14952b34aa7f364797e17bf3c71bca38c865 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:27:22 +0200 Subject: [PATCH 3/9] removing unnecessary md files - 2 --- .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ docs/net6.0/DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 714 +++ ...Net.Extensions.SystemTypes.ReadableSpan.md | 914 ++++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 +++++ .../DevFast.Net.Extensions.SystemTypes.md | 12 + docs/net6.0/index.md | 13 + .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ docs/net8.0/DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 680 +++ ...Net.Extensions.SystemTypes.ReadableSpan.md | 1354 ++++++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 +++++ .../DevFast.Net.Extensions.SystemTypes.md | 12 + docs/net8.0/index.md | 11 + .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ .../DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 714 +++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ++++ .../DevFast.Net.Extensions.SystemTypes.md | 11 + docs/netstandard2.0/System.md | 8 + docs/netstandard2.0/index.md | 15 + .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ .../DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 714 +++ ...Net.Extensions.SystemTypes.ReadableSpan.md | 650 +++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ++++ .../DevFast.Net.Extensions.SystemTypes.md | 12 + docs/netstandard2.1/index.md | 14 + 44 files changed, 37112 insertions(+) create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/net6.0/index.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/net8.0/index.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/netstandard2.0/System.md create mode 100644 docs/netstandard2.0/index.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/netstandard2.1/index.md diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..a08d9d6 --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static System.Threading.Tasks.ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..593ffdd --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..b8f0ba3 --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.md b/docs/net6.0/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..2321c3b --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,714 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method + +Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. + +```csharp +public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') + +#### Returns +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md new file mode 100644 index 0000000..70e8bbd --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md @@ -0,0 +1,914 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` +- *Methods* + - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** + - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan +### Methods + + + +## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out bool value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..992ba3f --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,1127 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..314805e --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net6.0/index.md b/docs/net6.0/index.md new file mode 100644 index 0000000..f30a022 --- /dev/null +++ b/docs/net6.0/index.md @@ -0,0 +1,13 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | +| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | +| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..a08d9d6 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static System.Threading.Tasks.ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..593ffdd --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..b8f0ba3 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.md b/docs/net8.0/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..5b70731 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,680 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md new file mode 100644 index 0000000..92a937c --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md @@ -0,0 +1,1354 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` +- *Methods* + - **[TryTo(this ReadOnlySpan<byte>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** + - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan +### Methods + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out bool value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..992ba3f --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,1127 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..314805e --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net8.0/index.md b/docs/net8.0/index.md new file mode 100644 index 0000000..466fbdf --- /dev/null +++ b/docs/net8.0/index.md @@ -0,0 +1,11 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..1bd372f --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..49b75c2 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..e13fda5 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..f5ef6fb --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,714 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method + +Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. + +```csharp +public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') + +#### Returns +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..dc2cc7a --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,863 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..ae5ee25 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,11 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.0/System.md b/docs/netstandard2.0/System.md new file mode 100644 index 0000000..ee6f54e --- /dev/null +++ b/docs/netstandard2.0/System.md @@ -0,0 +1,8 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## System Namespace + +| Structs | | +| :--- | :--- | +| [Index](System.Index.md 'System.Index') | Represent a type can be used to index a collection either from the start or the end. | +| [Range](System.Range.md 'System.Range') | Represent a range has start and end indexes. | diff --git a/docs/netstandard2.0/index.md b/docs/netstandard2.0/index.md new file mode 100644 index 0000000..909d085 --- /dev/null +++ b/docs/netstandard2.0/index.md @@ -0,0 +1,15 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | +| [System](System.md 'System') | | +| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | +| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | +| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..a08d9d6 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static System.Threading.Tasks.ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..593ffdd --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..b8f0ba3 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..2321c3b --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,714 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method + +Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. + +```csharp +public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') + +#### Returns +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md new file mode 100644 index 0000000..cdfb380 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md @@ -0,0 +1,650 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` +- *Methods* + - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** + - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** + - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan +### Methods + + + +## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out bool value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..dc2cc7a --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,863 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..314805e --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.1/index.md b/docs/netstandard2.1/index.md new file mode 100644 index 0000000..3f1a8bc --- /dev/null +++ b/docs/netstandard2.1/index.md @@ -0,0 +1,14 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | +| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | +| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | +| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | From c0dbeef9e80117bac4989b07f9e804d0164ac799 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:28:05 +0200 Subject: [PATCH 4/9] removing unnecessary md files - 3 --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aacbc34..64e04e3 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ -[Ss]ystem.*.md +[Ss]ystem*.md # Visual Studio 2015/2017 cache/options directory .vs/ From 77e6d0548ded5e9209e745224a0698d5a91e4977 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:31:34 +0200 Subject: [PATCH 5/9] removing unnecessary md files - 5 --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 64e04e3..b74f217 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ +[Ss]ystem.md [Ss]ystem*.md # Visual Studio 2015/2017 cache/options directory From 600f6c0c5119be689e9885940be0ed35262a8180 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:31:52 +0200 Subject: [PATCH 6/9] removing unnecessary md files - 6 --- .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- docs/net6.0/DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 714 --- ...Net.Extensions.SystemTypes.ReadableSpan.md | 914 ---- ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 ----- .../DevFast.Net.Extensions.SystemTypes.md | 12 - docs/net6.0/index.md | 13 - .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- docs/net8.0/DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 680 --- ...Net.Extensions.SystemTypes.ReadableSpan.md | 1354 ------ ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 ----- .../DevFast.Net.Extensions.SystemTypes.md | 12 - docs/net8.0/index.md | 11 - .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- .../DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 714 --- ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ---- .../DevFast.Net.Extensions.SystemTypes.md | 11 - docs/netstandard2.0/System.md | 8 - docs/netstandard2.0/index.md | 15 - .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 - .../DevFast.Net.Extensions.Etc.Errors.md | 358 -- .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ---------- .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 ----------------- .../DevFast.Net.Extensions.Etc.md | 12 - ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 -- ....Net.Extensions.SystemTypes.Enumerables.md | 714 --- ...Net.Extensions.SystemTypes.ReadableSpan.md | 650 --- ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ---- .../DevFast.Net.Extensions.SystemTypes.md | 12 - docs/netstandard2.1/index.md | 14 - 44 files changed, 37112 deletions(-) delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/net6.0/index.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/net8.0/index.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/netstandard2.0/System.md delete mode 100644 docs/netstandard2.0/index.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md delete mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md delete mode 100644 docs/netstandard2.1/index.md diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index a08d9d6..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static System.Threading.Tasks.ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 593ffdd..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index b8f0ba3..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.md b/docs/net6.0/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index 2321c3b..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,714 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method - -Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. - -```csharp -public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') - -#### Returns -[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md deleted file mode 100644 index 70e8bbd..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md +++ /dev/null @@ -1,914 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` -- *Methods* - - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** - - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan -### Methods - - - -## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out bool value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index 992ba3f..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,1127 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index 314805e..0000000 --- a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net6.0/index.md b/docs/net6.0/index.md deleted file mode 100644 index f30a022..0000000 --- a/docs/net6.0/index.md +++ /dev/null @@ -1,13 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index a08d9d6..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static System.Threading.Tasks.ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 593ffdd..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index b8f0ba3..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.md b/docs/net8.0/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index 5b70731..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,680 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md deleted file mode 100644 index 92a937c..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md +++ /dev/null @@ -1,1354 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` -- *Methods* - - **[TryTo(this ReadOnlySpan<byte>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<byte>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** - - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan -### Methods - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan utf8Text, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -UTF-8 byte span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out bool value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index 992ba3f..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,1127 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Date-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Date-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Time-only format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Time-only formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index 314805e..0000000 --- a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net8.0/index.md b/docs/net8.0/index.md deleted file mode 100644 index 466fbdf..0000000 --- a/docs/net8.0/index.md +++ /dev/null @@ -1,11 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index 1bd372f..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 49b75c2..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index e13fda5..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index f5ef6fb..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,714 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method - -Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. - -```csharp -public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') - -#### Returns -[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index dc2cc7a..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,863 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index ae5ee25..0000000 --- a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,11 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.0/System.md b/docs/netstandard2.0/System.md deleted file mode 100644 index ee6f54e..0000000 --- a/docs/netstandard2.0/System.md +++ /dev/null @@ -1,8 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## System Namespace - -| Structs | | -| :--- | :--- | -| [Index](System.Index.md 'System.Index') | Represent a type can be used to index a collection either from the start or the end. | -| [Range](System.Range.md 'System.Range') | Represent a range has start and end indexes. | diff --git a/docs/netstandard2.0/index.md b/docs/netstandard2.0/index.md deleted file mode 100644 index 909d085..0000000 --- a/docs/netstandard2.0/index.md +++ /dev/null @@ -1,15 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System](System.md 'System') | | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | -| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md deleted file mode 100644 index a08d9d6..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md +++ /dev/null @@ -1,94 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` -- *Properties* - - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** -- *Methods* - - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** - - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** - -## Asynchro Class - -Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). - -```csharp -public static class Asynchro -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro -### Properties - - - -## Asynchro.CompletedTask Property - -Gets a task that has already completed successfully. - -```csharp -public static System.Threading.Tasks.ValueTask CompletedTask { get; } -``` - -#### Property Value -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') -### Methods - - - -## Asynchro.FromResult(TResult) Method - -Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. - -```csharp -public static System.Threading.Tasks.ValueTask FromResult(TResult result); -``` -#### Type parameters - - - -`TResult` - -The type of the result returned by the task. -#### Parameters - - - -`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') - -The result to store into the completed task. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') -The successfully completed task. - - - -## Asynchro.Run(this T) Method - -Starts the given task if not already started. Returns it back after starting for chaining or awaiting. - -```csharp -public static T Run(this T task) - where T : System.Threading.Tasks.Task; -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') - -Task to start - -#### Returns -[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md deleted file mode 100644 index d4e8d1f..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md +++ /dev/null @@ -1,358 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` -- *Methods* - - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** - - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** - - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** - -## Errors Class - -Extension methods to throw or consume various kind of exceptions. - -```csharp -public static class Errors -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors -### Methods - - - -## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - -Value to check - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') -or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to check - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate to evaluate - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument supplied as value - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} does not satisfy {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method - -Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. - -NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be -'{argumentName} satisfied {predicateName}.', -thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') -will make more sense during debugging or log-analysis. - -```csharp -public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - -Value to evaluate predicate on - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Predicate lambda - - - -`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the argument - - - -`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Name of the predicate - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') - -#### Returns -[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') - - - -## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method - -Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). -Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. - -```csharp -public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); -``` -#### Parameters - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag value to check - - - -`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - - - -`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') - -Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md deleted file mode 100644 index 593ffdd..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md +++ /dev/null @@ -1,2205 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` -- *Methods* - - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** - - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** - - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** - - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** - - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** - - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** - - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** - - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** - - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** - - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** - - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** - -## Lambdas Class - -Extension methods to execute lambdas. - -```csharp -public static class Lambdas -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas -### Methods - - - -## Lambdas.Execute(this Action) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). - -```csharp -public static void Execute(this System.Action lambda); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute. - - - -## Lambdas.Execute(this Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, System.Action finallyClause); -``` -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. - -```csharp -public static T Execute(this System.Func lambda); -``` -#### Type parameters - - - -`T` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') - - - -## Lambdas.Execute(this Action, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Func, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. - -```csharp -public static TOut Execute(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type of the lambda -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') - -Lambda state - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Func, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value -after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') - - - -## Lambdas.Execute(this Action, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). - -```csharp -public static void Execute(this System.Action lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') - -Lambda state - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - - - -## Lambdas.Execute(this Action, TState, Action) Method - -Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and -executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` -#### Parameters - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); -``` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); -``` -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); -``` -#### Type parameters - - - -`TOut` -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute. - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); -``` -#### Type parameters - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda to execute inside try clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. -If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or -its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') -execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') -to obtain the return value. -And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. - -NOTE: The code itself will NOT re-throw caught exception, but, -[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. -[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) - where TError : System.Exception; -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type - - - -`TError` - -Exception type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') - -Lambda state - - - -`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') - -Error handler to invoke inside catch clause - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Output type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func>, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type - - - -`TOut` - -Return type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Lambdas.ExecuteAsync(this Func, TState) Method - -Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute. - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') - -Lambda state - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') - - - -## Lambdas.ExecuteAsync(this Func, TState, Action) Method - -Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns -after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. - -NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). - -```csharp -public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); -``` -#### Type parameters - - - -`TState` - -State type -#### Parameters - - - -`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda to execute inside try clause - - - -`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') - -Lambda state - - - -`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - -Code to run inside finally clause - -#### Returns -[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md deleted file mode 100644 index b8f0ba3..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md +++ /dev/null @@ -1,3878 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` -- *Methods* - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** - - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** - - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** - - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** - - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** - - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** - - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** - - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** - - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** - -## PipeLine Class - -Extension methods on Lambdas to create a executable Pipeline. - -```csharp -public static class PipeLine -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine -### Methods - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TSrcState` - - - -`TTanState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') -and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') -containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Action) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). - -```csharp -public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). - -#### Returns -[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). - -```csharp -public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` - - - -`TState` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Flag which dictate whether to apply tandem lambda or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - -IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, -calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. -Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func>, bool) Method - -Provides a conditional asynchronous lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds -[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - -```csharp -public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') - -Value to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this T, Func, bool) Method - -Provides a conditional lambda, which upon execution: - -1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). -2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original -[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). - -```csharp -public static T Pipe(this T input, System.Func tandemLambda, bool flag); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda that would consume the value. - - - -`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not - -#### Returns -[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') -and returns the results. - -```csharp -public static TOut Pipe(this TIn input, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TOut` -#### Parameters - - - -`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Source on which the adapter is applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda - -#### Returns -[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); -``` -#### Type parameters - - - -`TIn` - - - -`TSrcState` - - - -`TTanState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - - - -`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Lambda for state manipulation. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func, Func) Method - -Provides a lambda, which upon execution, feeds the output of -[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Source lambda to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Provides a lambda, which upon execution, feeds the output of -[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained -from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task to which the tandem operation would be applied. - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this TIn, Func) Method - -Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') -to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. - -```csharp -public static System.Func Pipe(this TIn value, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TState` - - - -`TOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') - -Value to feed - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Tandem lambda that would consume the value. - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func>, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). - -```csharp -public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Func, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). - -```csharp -public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - -Source lambda on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this Task, Func) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). - -```csharp -public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') - -Task on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') - - - -## PipeLine.Pipe(this TIn, Func>) Method - -Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). - -```csharp -public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); -``` -#### Type parameters - - - -`TIn` - - - -`TTOut` -#### Parameters - - - -`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') - -Value on which tandem lambda will be applied - - - -`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') - -Tandem lambda to apply - -#### Returns -[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md deleted file mode 100644 index e309d1b..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.Etc Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). - -| Classes | | -| :--- | :--- | -| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | -| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | -| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | -| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md deleted file mode 100644 index 784be97..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md +++ /dev/null @@ -1,274 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` -- *Methods* - - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** - - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** - - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** - - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** - - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** - - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** - - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** - -## ByteArrays Class - -Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). - -```csharp -public static class ByteArrays -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays -### Methods - - - -## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') -as constraint are checked. - -```csharp -public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from -[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's -[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Target array - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in source array to start copying byte from. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position in target array to start writing the bytes to. - - - -## ByteArrays.DoubleByteCapacity(this byte[]) Method - -Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. - -```csharp -public static byte[] DoubleByteCapacity(this byte[] source); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.EnsureByteCapacity(byte[], int) Method - -Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') -are copied to the newly created array. - -```csharp -public static void EnsureByteCapacity(ref byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - - - -## ByteArrays.EnsureByteCapacity(this byte[], int) Method - -Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') -are copied to the newly created array. - -```csharp -public static byte[] EnsureByteCapacity(this byte[] source, int capacity); -``` -#### Parameters - - - -`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array - - - -`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Minimum length of the array - -#### Returns -[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - - - -## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as -constraint are checked. - -```csharp -public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. - - - -## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method - -Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) -to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. - -!!!- CALL IT AT YOUR OWN RISK -!!! - -This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') -as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. - -```csharp -public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); -``` -#### Parameters - - - -`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -Source array. - - - -`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position from which to start copying bytes. - - - -`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of bytes to copy. - - - -`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md deleted file mode 100644 index 2321c3b..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md +++ /dev/null @@ -1,714 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` -- *Methods* - - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** - - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** - - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** - - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** - - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** - - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** - -## Enumerables Class - -Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). - -```csharp -public static class Enumerables -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables -### Methods - - - -## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). - -```csharp -public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') - -predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') - - - -## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. - -```csharp -public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. -Returns outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method - -Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the -outputs as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type - - - -`TOut` - -Output Type -#### Parameters - - - -`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - -Enumerable items - - - -`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Lambda to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are bypassed and remaining (if any) items are returned as a part of iteration. -No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number of elements to skip - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method - -While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') -elements are returned as a part of iteration. -If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items -are returned. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`TIn` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Total number (max) of elements to take - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method - -Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. - -```csharp -public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') - -#### Returns -[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') - - - -## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method - -Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it -in a list and returns such lists as a part of newly created asynchronous enumerable. - -USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items -are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) -is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). - -```csharp -public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -Maximum size of chunk - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') - - - -`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - -USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. -In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or -the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). -If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. - -WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method - -Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. - -```csharp -public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - - - -## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method - -Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the -filtered items as a newly created asynchronous enumerable. - -```csharp -public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); -``` -#### Type parameters - - - -`T` - -Input Type -#### Parameters - - - -`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') - -Asynchronously Enumerable items - - - -`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') - -Predicate to apply - - - -`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') - -Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') - - - -`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -#### Returns -[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md deleted file mode 100644 index cdfb380..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md +++ /dev/null @@ -1,650 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` -- *Methods* - - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** - - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** - - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## ReadableSpan Class - -Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). - -```csharp -public static class ReadableSpan -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan -### Methods - - - -## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out bool value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') - -Character span to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md deleted file mode 100644 index dc2cc7a..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md +++ /dev/null @@ -1,863 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') -### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` -- *Methods* - - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** - - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** - - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** - - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** - - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** - - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** - - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** - - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** - - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** - - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** - - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** - -## Strings Class - -Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). - -```csharp -public static class Strings -``` - -Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings -### Methods - - - -## Strings.IsNotNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. - -```csharp -public static bool IsNotNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.IsNows(this string) Method - -Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. - -```csharp -public static bool IsNows(this string? input); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to check - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method - -Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture -(if not supplied then is used). -If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided -[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). - -```csharp -public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -value to operate on - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') - - - -`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') - -Culture to use, if null or not supplied, then is used. - -### See Also -- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrDefault(this string, string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -default value to return when input is null. - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrEmpty(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; -otherwise trimmed string is returned. - -```csharp -public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TrimSafeOrNull(this string, char[]) Method - -If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; -otherwise trimmed string is returned. - -```csharp -public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -Value to trim safe - - - -`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -optional. when not given any char set, - whitespaces will be removed - -#### Returns -[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - - - -## Strings.TryTo(this string, bool) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out bool value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -DateTime format to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') - -DateTime formats to use. - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') - -parsed value - - - -`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, Guid) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out System.Guid value); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') - -parsed value - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') - - - -## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method - -Tries parsing to value. -Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). - -```csharp -public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); -``` -#### Parameters - - - -`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') - -string to parse - - - -`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') - -parsed value - - - -`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') - -style to use during parsing - - - -`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') - -format provider - -#### Returns -[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md deleted file mode 100644 index 314805e..0000000 --- a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md +++ /dev/null @@ -1,12 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions.SystemTypes Namespace - -Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). - -| Classes | | -| :--- | :--- | -| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | -| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | -| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | -| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.1/index.md b/docs/netstandard2.1/index.md deleted file mode 100644 index 3f1a8bc..0000000 --- a/docs/netstandard2.1/index.md +++ /dev/null @@ -1,14 +0,0 @@ -#### [DevFast.Net.Extensions](index.md 'index') - -## DevFast.Net.Extensions Assembly - -This assembly contains various well-tested, self-explained & easy to use extension methods -to achieve optimized runtime performance with improved readability of the code. - -| Namespaces | | -| :--- | :--- | -| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | -| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | -| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | From b561bf15ffcafc0677c0f01de78d07aeae1a6299 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:32:14 +0200 Subject: [PATCH 7/9] removing unnecessary md files - 7 --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index b74f217..64e04e3 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ -[Ss]ystem.md [Ss]ystem*.md # Visual Studio 2015/2017 cache/options directory From 10b630e214e4ad10a34491a7cbf6610182ff67e0 Mon Sep 17 00:00:00 2001 From: samaysar Date: Mon, 22 Jul 2024 19:33:38 +0200 Subject: [PATCH 8/9] removing unnecessary md files - 8 --- .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ docs/net6.0/DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 714 +++ ...Net.Extensions.SystemTypes.ReadableSpan.md | 914 ++++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 +++++ .../DevFast.Net.Extensions.SystemTypes.md | 12 + docs/net6.0/index.md | 13 + .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ docs/net8.0/DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 680 +++ ...Net.Extensions.SystemTypes.ReadableSpan.md | 1354 ++++++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 1127 +++++ .../DevFast.Net.Extensions.SystemTypes.md | 12 + docs/net8.0/index.md | 11 + .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ .../DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 714 +++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ++++ .../DevFast.Net.Extensions.SystemTypes.md | 11 + docs/netstandard2.0/index.md | 15 + .../DevFast.Net.Extensions.Etc.Asynchro.md | 94 + .../DevFast.Net.Extensions.Etc.Errors.md | 358 ++ .../DevFast.Net.Extensions.Etc.Lambdas.md | 2205 ++++++++++ .../DevFast.Net.Extensions.Etc.PipeLine.md | 3878 +++++++++++++++++ .../DevFast.Net.Extensions.Etc.md | 12 + ...t.Net.Extensions.SystemTypes.ByteArrays.md | 274 ++ ....Net.Extensions.SystemTypes.Enumerables.md | 714 +++ ...Net.Extensions.SystemTypes.ReadableSpan.md | 650 +++ ...Fast.Net.Extensions.SystemTypes.Strings.md | 863 ++++ .../DevFast.Net.Extensions.SystemTypes.md | 12 + docs/netstandard2.1/index.md | 14 + 43 files changed, 37104 insertions(+) create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.Etc.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/net6.0/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/net6.0/index.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.Etc.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/net8.0/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/net8.0/index.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.Etc.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/netstandard2.0/index.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.Etc.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md create mode 100644 docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md create mode 100644 docs/netstandard2.1/index.md diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..a08d9d6 --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static System.Threading.Tasks.ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..593ffdd --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..b8f0ba3 --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.Etc.md b/docs/net6.0/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..2321c3b --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,714 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method + +Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. + +```csharp +public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') + +#### Returns +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md new file mode 100644 index 0000000..70e8bbd --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md @@ -0,0 +1,914 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` +- *Methods* + - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** + - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan +### Methods + + + +## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out bool value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..992ba3f --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,1127 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..314805e --- /dev/null +++ b/docs/net6.0/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net6.0/index.md b/docs/net6.0/index.md new file mode 100644 index 0000000..f30a022 --- /dev/null +++ b/docs/net6.0/index.md @@ -0,0 +1,13 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | +| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | +| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..a08d9d6 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static System.Threading.Tasks.ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..593ffdd --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..b8f0ba3 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.Etc.md b/docs/net8.0/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..5b70731 --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,680 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md new file mode 100644 index 0000000..92a937c --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md @@ -0,0 +1,1354 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` +- *Methods* + - **[TryTo(this ReadOnlySpan<byte>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<byte>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** + - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan +### Methods + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,byte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,double,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,float,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,int,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,long,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,short,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,uint,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [utf8Text](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_byte_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).utf8Text 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).utf8Text') UTF-8 byte span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan utf8Text, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`utf8Text` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +UTF-8 byte span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out bool value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..992ba3f --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,1127 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.TimeOnly,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.TimeOnly, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Date-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Date-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateOnly](https://docs.microsoft.com/en-us/dotnet/api/System.DateOnly 'System.DateOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Time-only format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Time-only formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, TimeOnly, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.TimeOnly value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.TimeOnly](https://docs.microsoft.com/en-us/dotnet/api/System.TimeOnly 'System.TimeOnly') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..314805e --- /dev/null +++ b/docs/net8.0/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/net8.0/index.md b/docs/net8.0/index.md new file mode 100644 index 0000000..466fbdf --- /dev/null +++ b/docs/net8.0/index.md @@ -0,0 +1,11 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..1bd372f --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..49b75c2 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..e13fda5 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..f5ef6fb --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,714 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method + +Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. + +```csharp +public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') + +#### Returns +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..dc2cc7a --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,863 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..ae5ee25 --- /dev/null +++ b/docs/netstandard2.0/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,11 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.0/index.md b/docs/netstandard2.0/index.md new file mode 100644 index 0000000..909d085 --- /dev/null +++ b/docs/netstandard2.0/index.md @@ -0,0 +1,15 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | +| [System](System.md 'System') | | +| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | +| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | +| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md new file mode 100644 index 0000000..a08d9d6 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Asynchro.md @@ -0,0 +1,94 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` +- *Properties* + - **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** +- *Methods* + - **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult)')** + - **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T)')** + +## Asynchro Class + +Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). + +```csharp +public static class Asynchro +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro +### Properties + + + +## Asynchro.CompletedTask Property + +Gets a task that has already completed successfully. + +```csharp +public static System.Threading.Tasks.ValueTask CompletedTask { get; } +``` + +#### Property Value +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') +### Methods + + + +## Asynchro.FromResult(TResult) Method + +Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. + +```csharp +public static System.Threading.Tasks.ValueTask FromResult(TResult result); +``` +#### Type parameters + + + +`TResult` + +The type of the result returned by the task. +#### Parameters + + + +`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult') + +The result to store into the completed task. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') +The successfully completed task. + + + +## Asynchro.Run(this T) Method + +Starts the given task if not already started. Returns it back after starting for chaining or awaiting. + +```csharp +public static T Run(this T task) + where T : System.Threading.Tasks.Task; +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') + +Task to start + +#### Returns +[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run(this T).T') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md new file mode 100644 index 0000000..d4e8d1f --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Errors.md @@ -0,0 +1,358 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` +- *Methods* + - **[ThrowArgumentExceptionForNull<T>(this T, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionForNullOrOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateFail<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception)')** + - **[ThrowArgumentExceptionOnPredicateSuccess<T>(this T, Func<T,bool>, string, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception)')** + - **[ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception)](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception) 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception)')** + +## Errors Class + +Extension methods to throw or consume various kind of exceptions. + +```csharp +public static class Errors +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Errors +### Methods + + + +## Errors.ThrowArgumentExceptionForNull(this T, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be '{argumentName} was null.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).argumentName') will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNull(this T? value, string argumentName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + +Value to check + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull_T_(thisT,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNull(this T, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') evaluates to [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateFail(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') +or if the [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') evaluates to [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, returns the [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and/or [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T? value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to check + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate to evaluate + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument supplied as value + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionForNullOrOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateFail(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicate') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} does not satisfy {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateFail(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateFail(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, Func, string, string, Exception) Method + +Throws an [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') if [predicate](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicate 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicate') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [value](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).value 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).value') for chaining purpose. + +NOTE: If [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') is thrown, the message will be +'{argumentName} satisfied {predicateName}.', +thus, a well-formed [argumentName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).argumentName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).argumentName') and [predicateName](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).predicateName 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).predicateName') +will make more sense during debugging or log-analysis. + +```csharp +public static T ThrowArgumentExceptionOnPredicateSuccess(this T value, System.Func predicate, string argumentName, string predicateName, System.Exception? innerException=null); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + +Value to evaluate predicate on + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Predicate lambda + + + +`argumentName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the argument + + + +`predicateName` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Name of the predicate + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/System.ArgumentException 'System.ArgumentException') + +#### Returns +[T](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess_T_(thisT,System.Func_T,bool_,string,string,System.Exception).T 'DevFast.Net.Extensions.Etc.Errors.ThrowArgumentExceptionOnPredicateSuccess(this T, System.Func, string, string, System.Exception).T') + + + +## Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfFalse(this bool, string, System.Exception).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfFalse(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, Exception) Method + +Throws an [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') if [flag](DevFast.Net.Extensions.Etc.Errors.md#DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(thisbool,string,System.Exception).flag 'DevFast.Net.Extensions.Etc.Errors.ThrowInvalidOperationExceptionIfTrue(this bool, string, System.Exception).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). +Otherwise, always returns [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') for chaining purpose. + +```csharp +public static bool ThrowInvalidOperationExceptionIfTrue(this bool flag, string message, System.Exception? innerException=null); +``` +#### Parameters + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag value to check + + + +`message` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Message of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + + + +`innerException` [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception') + +Inner exceptions of the [System.InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/System.InvalidOperationException 'System.InvalidOperationException') + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md new file mode 100644 index 0000000..593ffdd --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.Lambdas.md @@ -0,0 +1,2205 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` +- *Methods* + - **[Execute(this Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action)')** + - **[Execute(this Action, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action)')** + - **[Execute<T>(this Func<T>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func)')** + - **[Execute<TError>(this Action, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action)')** + - **[Execute<TOut,TError>(this Func<TOut>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action)')** + - **[Execute<TOut>(this Func<TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TError>(this Action<TState>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut,TError>(this Func<TState,TOut>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState,TOut>(this Func<TState,TOut>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState)')** + - **[Execute<TState>(this Action<TState>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[Execute<TState>(this Action<TState>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action)')** + - **[ExecuteAsync(this Func<Task>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<Task>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync(this Func<ValueTask>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func)')** + - **[ExecuteAsync(this Func<ValueTask>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action)')** + - **[ExecuteAsync<TError>(this Func<Task>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TError>(this Func<ValueTask>, Action<ExceptionDispatchInfo,TError>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<Task<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut,TError>(this Func<ValueTask<TOut>>, Func<ExceptionDispatchInfo,TError,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<Task<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>)')** + - **[ExecuteAsync<TOut>(this Func<ValueTask<TOut>>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,Task>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TError>(this Func<TState,ValueTask>, TState, Action<ExceptionDispatchInfo,TError,TState>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,Task<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut,TError>(this Func<TState,ValueTask<TOut>>, TState, Func<ExceptionDispatchInfo,TError,TState,TOut>, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,Task<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState,TOut>(this Func<TState,ValueTask<TOut>>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,Task>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + - **[ExecuteAsync<TState>(this Func<TState,ValueTask>, TState, Action<TState>)](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_) 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action)')** + +## Lambdas Class + +Extension methods to execute lambdas. + +```csharp +public static class Lambdas +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Lambdas +### Methods + + + +## Lambdas.Execute(this Action) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action).lambda'). + +```csharp +public static void Execute(this System.Action lambda); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute. + + + +## Lambdas.Execute(this Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute(thisSystem.Action,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, System.Action finallyClause); +``` +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).lambda') and returns its results. + +```csharp +public static T Execute(this System.Func lambda); +``` +#### Type parameters + + + +`T` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[T](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_T_(thisSystem.Func_T_).T 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func).T') + + + +## Lambdas.Execute(this Action, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TError_(thisSystem.Action,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut,TError_(thisSystem.Func_TOut_,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TOut_(thisSystem.Func_TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler'). +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TError_(thisSystem.Action_TState_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Func, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).lambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut,TError_(thisSystem.Func_TState,TOut_,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Func, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).lambda') and returns its results. + +```csharp +public static TOut Execute(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type of the lambda +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TState') + +Lambda state + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Func, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).lambda') inside try block and returns its value +after executing [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static TOut Execute(this System.Func lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState,TOut_(thisSystem.Func_TState,TOut_,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Func, TState, System.Action).TOut') + + + +## Lambdas.Execute(this Action, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).lambda'). + +```csharp +public static void Execute(this System.Action lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState).TState') + +Lambda state + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +excutes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + + + +## Lambdas.Execute(this Action, TState, Action) Method + +Executes [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).lambda') inside try block and +executes [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static void Execute(this System.Action lambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` +#### Parameters + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.Execute_TState_(thisSystem.Action_TState_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.Execute(this System.Action, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.Task_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda); +``` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action finallyClause); +``` +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.Task_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') inside try block. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler'). +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, System.Action, System.Action).TError')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut,TError_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.Task_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda); +``` +#### Type parameters + + + +`TOut` +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute. + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, System.Action finallyClause); +``` +#### Type parameters + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda to execute inside try clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TOut__,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-3 'System.Action`3') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +If any [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') is provided, it will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action? finallyClause=null) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Func, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') inside try block and returns its value. +If any exception of type [TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError') (or +its derived types) occurs during [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).asyncLambda') +execution, relevant information is passed to [errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') +to obtain the return value. +And, [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).finallyClause') will be executed inside finally. + +NOTE: The code itself will NOT re-throw caught exception, but, +[errorHandler](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).errorHandler 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).errorHandler') may itself re-throw those (e.g. +[System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw 'System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw')), if needed. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Func errorHandler, System.Action finallyClause) + where TError : System.Exception; +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type + + + +`TError` + +Exception type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState') + +Lambda state + + + +`errorHandler` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[System.Runtime.ExceptionServices.ExceptionDispatchInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.ExceptionServices.ExceptionDispatchInfo 'System.Runtime.ExceptionServices.ExceptionDispatchInfo')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TError](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TError 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TError')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-4 'System.Func`4') + +Error handler to invoke inside catch clause + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut,TError_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Func_System.Runtime.ExceptionServices.ExceptionDispatchInfo,TError,TState,TOut_,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Func, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Output type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func>, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).asyncLambda') inside try block and returns its value +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func> asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type + + + +`TOut` + +Return type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TOut__,TState,System.Action_TState_).TOut 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func>, TState, System.Action).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.Task ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Lambdas.ExecuteAsync(this Func, TState) Method + +Executes the given [lambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).lambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).lambda') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func lambda, TState state); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute. + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState).TState') + +Lambda state + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action](https://docs.microsoft.com/en-us/dotnet/api/System.Action 'System.Action') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') + + + +## Lambdas.ExecuteAsync(this Func, TState, Action) Method + +Asynchronously executes [asyncLambda](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).asyncLambda 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).asyncLambda') inside try block and returns +after excuting [finallyClause](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).finallyClause 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).finallyClause') inside finally. + +NOTE: The code itself will NOT catch any [System.Exception](https://docs.microsoft.com/en-us/dotnet/api/System.Exception 'System.Exception'). + +```csharp +public static System.Threading.Tasks.ValueTask ExecuteAsync(this System.Func asyncLambda, TState state, System.Action finallyClause); +``` +#### Type parameters + + + +`TState` + +State type +#### Parameters + + + +`asyncLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda to execute inside try clause + + + +`state` [TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState') + +Lambda state + + + +`finallyClause` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.Lambdas.md#DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync_TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_,TState,System.Action_TState_).TState 'DevFast.Net.Extensions.Etc.Lambdas.ExecuteAsync(this System.Func, TState, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + +Code to run inside finally clause + +#### Returns +[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md new file mode 100644 index 0000000..b8f0ba3 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.PipeLine.md @@ -0,0 +1,3878 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` +- *Methods* + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,Task<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,ValueTask<T>>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Action<T,TTanState>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,Task>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask<T>>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,ValueTask>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<T,TSrcState,TTanState>(this Func<TSrcState,T>, Func<T,TTanState,T>, Func<TTanState,TSrcState>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,Task<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,ValueTask<T>>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Action<T,TState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,Task>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,ValueTask>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<T,TState>(this Func<TState,T>, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T,TState>(this Task<T>, Func<T,TState,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T,TState>(this T, Func<T,TState,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<Task<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool)')** + - **[Pipe<T>(this Func<ValueTask<T>>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool)')** + - **[Pipe<T>(this Func<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool)')** + - **[Pipe<T>(this Task<T>, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool)')** + - **[Pipe<T>(this T, Func<T,Task<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,ValueTask<T>>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool)')** + - **[Pipe<T>(this T, Func<T,T>, bool)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool)')** + - **[Pipe<TIn,TOut>(this TIn, Func<TIn,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,Task<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,ValueTask<TIn>>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,Task<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,ValueTask<TOut>>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func)')** + - **[Pipe<TIn,TSrcState,TTanState,TOut>(this Func<TSrcState,TIn>, Func<TIn,TTanState,TOut>, Func<TTanState,TSrcState>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,Task<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,ValueTask<TIn>>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,ValueTask<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this Func<TState,TIn>, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TState,TOut>(this Task<TIn>, Func<TIn,TState,Task<TOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TState,TOut>(this TIn, Func<TIn,TState,TOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<Task<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<ValueTask<TIn>>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Func<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>)')** + - **[Pipe<TIn,TTOut>(this Task<TIn>, Func<TIn,TTOut>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,Task<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + - **[Pipe<TIn,TTOut>(this TIn, Func<TIn,ValueTask<TTOut>>)](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__) 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>)')** + +## PipeLine Class + +Extension methods on Lambdas to create a executable Pipeline. + +```csharp +public static class PipeLine +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 PipeLine +### Methods + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Action_T,TTanState_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action, System.Func).TTanState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.Task_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_T__,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,System.Threading.Tasks.ValueTask_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TSrcState` + + + +`TTanState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).sourceLambda'). + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TSrcState,TTanState_(thisSystem.Func_TSrcState,T_,System.Func_T,TTanState,T_,System.Func_TTanState,TSrcState_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.Task_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') +and returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') containing the output of [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns a [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') +containing the output of the original [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda')'s [System.Threading.Tasks.Task<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_T__,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Action) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).tandemLambda'). + +```csharp +public static System.Action Pipe(this System.Func sourceLambda, System.Action tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).sourceLambda'). + +#### Returns +[System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Action_T,TState_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Action).TState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-1 'System.Action`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.Task_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,System.Threading.Tasks.ValueTask_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Func_TState,T_,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,TState,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).value'). + +```csharp +public static System.Func Pipe(this T value, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` + + + +`TState` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T,TState_(thisT,System.Func_T,TState,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.Task_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Conditionally applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Flag which dictate whether to apply tandem lambda or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_System.Threading.Tasks.ValueTask_T__,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).sourceLambda'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Func_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the output of the original +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + +IMPLEMENTATION NOTE: As the purpose of pipelines is to executes everything as lazily as possible, +calling this method on a non-running [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') is advisable, though NOT necessary. +Irrespective to the state of the [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task') outcome would be identical. + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).task'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisSystem.Threading.Tasks.Task_T_,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.Task_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func>, bool) Method + +Provides a conditional asynchronous lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds +[value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + +```csharp +public static System.Func> Pipe(this T value, System.Func> tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`value` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T') + +Value to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).value'). + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).tandemLambda') should be applied or not + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,System.Threading.Tasks.ValueTask_T__,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func>, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this T, Func, bool) Method + +Provides a conditional lambda, which upon execution: + +1. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), feeds [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda'). +2. If [flag](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).flag 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).flag') is [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), returns the original +[input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).input'). + +```csharp +public static T Pipe(this T input, System.Func tandemLambda, bool flag); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`input` [T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda that would consume the value. + + + +`flag` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +Conditional flag dictating whether [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).tandemLambda') should be applied or not + +#### Returns +[T](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_T_(thisT,System.Func_T,T_,bool).T 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this T, System.Func, bool).T') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') on the [input](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).input 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).input') +and returns the results. + +```csharp +public static TOut Pipe(this TIn input, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TOut` +#### Parameters + + + +`input` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Source on which the adapter is applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda + +#### Returns +[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TOut_(thisTIn,System.Func_TIn,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.Task_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,System.Threading.Tasks.ValueTask_TOut__,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda, System.Func stateAdapter); +``` +#### Type parameters + + + +`TIn` + + + +`TSrcState` + + + +`TTanState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + + + +`stateAdapter` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TSrcState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TSrcState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TSrcState')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Lambda for state manipulation. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTanState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TTanState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TTanState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TSrcState,TTanState,TOut_(thisSystem.Func_TSrcState,TIn_,System.Func_TIn,TTanState,TOut_,System.Func_TTanState,TSrcState_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.Task_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,System.Threading.Tasks.ValueTask_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func, Func) Method + +Provides a lambda, which upon execution, feeds the output of +[sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Source lambda to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Func_TState,TIn_,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Provides a lambda, which upon execution, feeds the output of +[task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task') to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') and returns the output obtained +from [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task to which the tandem operation would be applied. + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TState,System.Threading.Tasks.Task_TOut__).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this TIn, Func) Method + +Provides a lambda, which upon execution, feeds [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).value') +to the [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).tandemLambda') and returns its output. + +```csharp +public static System.Func Pipe(this TIn value, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TState` + + + +`TOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn') + +Value to feed + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Tandem lambda that would consume the value. + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TState](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TState 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TState')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TState,TOut_(thisTIn,System.Func_TIn,TState,TOut_).TOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.Task_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func>, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func> sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_System.Threading.Tasks.ValueTask_TIn__,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func>, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).sourceLambda'). + +```csharp +public static System.Func> Pipe(this System.Func sourceLambda, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Func, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).tandemLambda') on the output of [sourceLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).sourceLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).sourceLambda'). + +```csharp +public static System.Func Pipe(this System.Func sourceLambda, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`sourceLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + +Source lambda on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Func_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Func, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this Task, Func) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).tandemLambda') on the output of [task](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).task 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).task'). + +```csharp +public static System.Func> Pipe(this System.Threading.Tasks.Task task, System.Func tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`task` [System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1') + +Task on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisSystem.Threading.Tasks.Task_TIn_,System.Func_TIn,TTOut_).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this System.Threading.Tasks.Task, System.Func).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.Task<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.Task_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') + + + +## PipeLine.Pipe(this TIn, Func>) Method + +Applies [tandemLambda](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).tandemLambda 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).tandemLambda') on [value](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).value 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).value'). + +```csharp +public static System.Func> Pipe(this TIn value, System.Func> tandemLambda); +``` +#### Type parameters + + + +`TIn` + + + +`TTOut` +#### Parameters + + + +`value` [TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn') + +Value on which tandem lambda will be applied + + + +`tandemLambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[TIn](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TIn 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-2 'System.Func`2') + +Tandem lambda to apply + +#### Returns +[System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TTOut](DevFast.Net.Extensions.Etc.PipeLine.md#DevFast.Net.Extensions.Etc.PipeLine.Pipe_TIn,TTOut_(thisTIn,System.Func_TIn,System.Threading.Tasks.ValueTask_TTOut__).TTOut 'DevFast.Net.Extensions.Etc.PipeLine.Pipe(this TIn, System.Func>).TTOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md new file mode 100644 index 0000000..e309d1b --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.Etc.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.Etc Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). + +| Classes | | +| :--- | :--- | +| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | +| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | +| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | +| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md new file mode 100644 index 0000000..784be97 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ByteArrays.md @@ -0,0 +1,274 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` +- *Methods* + - **[CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)')** + - **[CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)')** + - **[DoubleByteCapacity(this byte[])](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[])')** + - **[EnsureByteCapacity(byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int)')** + - **[EnsureByteCapacity(this byte[], int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int)')** + - **[LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)')** + - **[LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)')** + +## ByteArrays Class + +Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). + +```csharp +public static class ByteArrays +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ByteArrays +### Methods + + + +## ByteArrays.CopyToSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +This method is SAFE version of [CopyToUnSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int)') +as constraint are checked. + +```csharp +public static void CopyToSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).total') bytes of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).source') array starting from +[sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).sourcePosition') (included) to [target](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).target 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).target') array's +[targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(thisbyte[],byte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToUnSafe(this byte[], byte[], int, int, int).targetPosition') (included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [CopyToSafe(this byte[], byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(thisbyte[],byte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.CopyToSafe(this byte[], byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void CopyToUnSafe(this byte[] source, byte[] target, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`target` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Target array + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in source array to start copying byte from. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position in target array to start writing the bytes to. + + + +## ByteArrays.DoubleByteCapacity(this byte[]) Method + +Creates a new array with double the size. Copies the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(thisbyte[]).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.DoubleByteCapacity(this byte[]).source') to the newly created array. + +```csharp +public static byte[] DoubleByteCapacity(this byte[] source); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.EnsureByteCapacity(byte[], int) Method + +Checks if array needs to be resized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(byte[], int).source') +are copied to the newly created array. + +```csharp +public static void EnsureByteCapacity(ref byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + + + +## ByteArrays.EnsureByteCapacity(this byte[], int) Method + +Checks if array needs to be up-sized. When resize takes place, the content of [source](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(thisbyte[],int).source 'DevFast.Net.Extensions.SystemTypes.ByteArrays.EnsureByteCapacity(this byte[], int).source') +are copied to the newly created array. + +```csharp +public static byte[] EnsureByteCapacity(this byte[] source, int capacity); +``` +#### Parameters + + + +`source` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array + + + +`capacity` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Minimum length of the array + +#### Returns +[System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + + + +## ByteArrays.LiftNCopySafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +NOTE: This method is SAFE version of [LiftNCopyUnSafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int)') as +constraint are checked. + +```csharp +public static void LiftNCopySafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. + + + +## ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int) Method + +Copies [total](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).total 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).total') bytes starting from [sourcePosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).sourcePosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).sourcePosition') (included) +to [targetPosition](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(thisbyte[],int,int,int).targetPosition 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopyUnSafe(this byte[], int, int, int).targetPosition') (Included) and onwards. + +!!!- CALL IT AT YOUR OWN RISK -!!! + +This method is UNSAFE version of [LiftNCopySafe(this byte[], int, int, int)](DevFast.Net.Extensions.SystemTypes.ByteArrays.md#DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(thisbyte[],int,int,int) 'DevFast.Net.Extensions.SystemTypes.ByteArrays.LiftNCopySafe(this byte[], int, int, int)') +as no constraint will be check. Caller MUST make sure all required constraints are checked beforehand. + +```csharp +public static void LiftNCopyUnSafe(this byte[] bytes, int sourcePosition, int total, int targetPosition); +``` +#### Parameters + + + +`bytes` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +Source array. + + + +`sourcePosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position from which to start copying bytes. + + + +`total` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of bytes to copy. + + + +`targetPosition` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Position at which starting writing the bytes. \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md new file mode 100644 index 0000000..2321c3b --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Enumerables.md @@ -0,0 +1,714 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` +- *Methods* + - **[CountAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[CountLongAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[ForEach<T>(this IEnumerable<T>, Action<T,CancellationToken>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken)')** + - **[ForEachAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[ForEachAsync<T>(this IEnumerable<T>, Func<T,CancellationToken,ValueTask>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IAsyncEnumerable<TIn>, Func<TIn,CancellationToken,TOut>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[SelectAsync<TIn,TOut>(this IEnumerable<TIn>, Func<TIn,CancellationToken,ValueTask<TOut>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + - **[SkipAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[TakeAsync<TIn>(this IAsyncEnumerable<TIn>, int, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool)')** + - **[ToBlockingEnumerable<T>(this IAsyncEnumerable<T>, CancellationToken)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken)')** + - **[ToChunksAsync<T>(this IAsyncEnumerable<T>, int, CancellationToken, bool, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool)')** + - **[ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,bool>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool)')** + - **[WhereAsync<T>(this IAsyncEnumerable<T>, Func<T,CancellationToken,ValueTask<bool>>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool)')** + +## Enumerables Class + +Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). + +```csharp +public static class Enumerables +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Enumerables +### Methods + + + +## Enumerables.CountAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.CountLongAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Counts number of elements in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection'), asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask CountLongAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.CountLongAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.ForEach(this IEnumerable, Action, CancellationToken) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).token'). + +```csharp +public static void ForEach(this System.Collections.Generic.IEnumerable collection, System.Action lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Action<](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Action-2 'System.Action`2') + +predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Action_T,System.Threading.CancellationToken_,System.Threading.CancellationToken).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEach(this System.Collections.Generic.IEnumerable, System.Action, System.Threading.CancellationToken).lambda') + + + +## Enumerables.ForEachAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.ForEachAsync(this IEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. + +```csharp +public static System.Threading.Tasks.Task ForEachAsync(this System.Collections.Generic.IEnumerable collection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync_T_(thisSystem.Collections.Generic.IEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.ForEachAsync(this System.Collections.Generic.IEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. +Returns outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).lambda') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,TOut_,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SelectAsync(this IEnumerable, Func>, CancellationToken, bool) Method + +Calls [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') for every item in [collection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).collection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).collection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously, and returns the +outputs as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SelectAsync(this System.Collections.Generic.IEnumerable collection, System.Func> lambda, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type + + + +`TOut` + +Output Type +#### Parameters + + + +`collection` [System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + +Enumerable items + + + +`lambda` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TIn')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Lambda to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [lambda](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).lambda 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).lambda') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TOut](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync_TIn,TOut_(thisSystem.Collections.Generic.IEnumerable_TIn_,System.Func_TIn,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_TOut__,System.Threading.CancellationToken,bool).TOut 'DevFast.Net.Extensions.SystemTypes.Enumerables.SelectAsync(this System.Collections.Generic.IEnumerable, System.Func>, System.Threading.CancellationToken, bool).TOut')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.SkipAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') total of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are bypassed and remaining (if any) items are returned as a part of iteration. +No exception is thrown it [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable SkipAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number of elements to skip + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.SkipAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.TakeAsync(this IAsyncEnumerable, int, CancellationToken, bool) Method + +While iterating on supplied [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') maximum of [count](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).count 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).count') +elements are returned as a part of iteration. +If [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') contains lesser number of items, all iterated items +are returned. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable TakeAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`TIn` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`count` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Total number (max) of elements to take + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token for enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[TIn](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync_TIn_(thisSystem.Collections.Generic.IAsyncEnumerable_TIn_,int,System.Threading.CancellationToken,bool).TIn 'DevFast.Net.Extensions.SystemTypes.Enumerables.TakeAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool).TIn')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToBlockingEnumerable(this IAsyncEnumerable, CancellationToken) Method + +Converts provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') instance into an [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') that enumerates elements in a blocking manner. + +```csharp +public static System.Collections.Generic.IEnumerable ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).asyncCollection') + +#### Returns +[System.Collections.Generic.IEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToBlockingEnumerable(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') + + + +## Enumerables.ToChunksAsync(this IAsyncEnumerable, int, CancellationToken, bool, bool) Method + +Collects maximum possible (controlled by [maxChunkSize](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).maxChunkSize 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).maxChunkSize')) items in the provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection'), puts it +in a list and returns such lists as a part of newly created asynchronous enumerable. + +USE-CASE: When the cost of calling [ToListAsync<T>(this IAsyncEnumerable<T>, CancellationToken, bool)](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool) 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool)') is too huge (requires too much memory or items +are too many to fit in a single [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')); and working on a small set of such items (instead of consuming single item at a time) +is advantageous (for e.g. database batch inserts using medium sized asyncCollection, instead of inserting item at a time). + +```csharp +public static System.Collections.Generic.IAsyncEnumerable> ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, int maxChunkSize, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool reUseList=false, bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`maxChunkSize` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +Maximum size of chunk + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).asyncCollection') + + + +`reUseList` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to reuse list for next iteration result; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + +USE-CASE of [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'): Resultant chunk ([System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')) of an iteration is out-of-scope (i.e. candidate for GC) after the iteration. +In other words, it is not shared with some part of the code which may out-live the iteration (e.g. a [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task')) or +the reference of the list itself out-lives the iteration (e.g. setting it to a static field or a reference to another variable that out-lives the iteration). +If such conditions are met, we are better off reusing the list (already allocated space) compared to re-creating a list again. + +WARNING: Be sure of the use-case when passing [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'), in case of doubt pass [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,int,System.Threading.CancellationToken,bool,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToChunksAsync(this System.Collections.Generic.IAsyncEnumerable, int, System.Threading.CancellationToken, bool, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.ToListAsync(this IAsyncEnumerable, CancellationToken, bool) Method + +Returns a new [System.Collections.Generic.List<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1') containing all the items of provided [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') asynchronously. + +```csharp +public static System.Threading.Tasks.ValueTask> ToListAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass to enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Collections.Generic.List<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.ToListAsync(this System.Collections.Generic.IAsyncEnumerable, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.List-1 'System.Collections.Generic.List`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,bool_,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + + + +## Enumerables.WhereAsync(this IAsyncEnumerable, Func>, CancellationToken, bool) Method + +Calls [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') for every item in [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') with given [token](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).token 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).token'), asynchronously. Returns the +filtered items as a newly created asynchronous enumerable. + +```csharp +public static System.Collections.Generic.IAsyncEnumerable WhereAsync(this System.Collections.Generic.IAsyncEnumerable asyncCollection, System.Func> predicate, System.Threading.CancellationToken token=default(System.Threading.CancellationToken), bool continueOnCapturedContext=false); +``` +#### Type parameters + + + +`T` + +Input Type +#### Parameters + + + +`asyncCollection` [System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') + +Asynchronously Enumerable items + + + +`predicate` [System.Func<](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken')[,](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3')[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-3 'System.Func`3') + +Predicate to apply + + + +`token` [System.Threading.CancellationToken](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.CancellationToken 'System.Threading.CancellationToken') + +Cancellation token to pass on to the supplied [predicate](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).predicate 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).predicate') and enumerator of [asyncCollection](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).asyncCollection 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).asyncCollection') + + + +`continueOnCapturedContext` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +[true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') to attempt to marshal the continuation back to the original context captured; otherwise, [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +#### Returns +[System.Collections.Generic.IAsyncEnumerable<](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1')[T](DevFast.Net.Extensions.SystemTypes.Enumerables.md#DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync_T_(thisSystem.Collections.Generic.IAsyncEnumerable_T_,System.Func_T,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask_bool__,System.Threading.CancellationToken,bool).T 'DevFast.Net.Extensions.SystemTypes.Enumerables.WhereAsync(this System.Collections.Generic.IAsyncEnumerable, System.Func>, System.Threading.CancellationToken, bool).T')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md new file mode 100644 index 0000000..cdfb380 --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.ReadableSpan.md @@ -0,0 +1,650 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` +- *Methods* + - **[TryTo(this ReadOnlySpan<char>, bool)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool)')** + - **[TryTo(this ReadOnlySpan<char>, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, Guid)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid)')** + - **[TryTo(this ReadOnlySpan<char>, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this ReadOnlySpan<char>, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## ReadableSpan Class + +Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). + +```csharp +public static class ReadableSpan +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 ReadableSpan +### Methods + + + +## ReadableSpan.TryTo(this ReadOnlySpan, bool) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,bool).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, bool).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out bool value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, byte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,byte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, byte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,decimal,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, decimal, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, double, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,double,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, double, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, float, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,float,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, float, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, int, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,int,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, int, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, long, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,long,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, long, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,sbyte,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, sbyte, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, short, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,short,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, short, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, Guid) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,System.Guid).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, System.Guid).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, uint, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,uint,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, uint, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ulong,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ulong, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## ReadableSpan.TryTo(this ReadOnlySpan, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing [input](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md#DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(thisSystem.ReadOnlySpan_char_,ushort,System.Globalization.NumberStyles,System.IFormatProvider).input 'DevFast.Net.Extensions.SystemTypes.ReadableSpan.TryTo(this System.ReadOnlySpan, ushort, System.Globalization.NumberStyles, System.IFormatProvider).input') character span to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this System.ReadOnlySpan input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.ReadOnlySpan<](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1')[System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1') + +Character span to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md new file mode 100644 index 0000000..dc2cc7a --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.Strings.md @@ -0,0 +1,863 @@ +#### [DevFast.Net.Extensions](index.md 'index') +### [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` +- *Methods* + - **[IsNotNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string)')** + - **[IsNows(this string)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring) 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string)')** + - **[TrimSafeAndLower(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeAndUpper(this string, string, CultureInfo)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo)')** + - **[TrimSafeOrDefault(this string, string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[])')** + - **[TrimSafeOrEmpty(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrEmpty(this string, char[])')** + - **[TrimSafeOrNull(this string, char[])](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(thisstring,char[]) 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrNull(this string, char[])')** + - **[TryTo(this string, bool)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,bool) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, bool)')** + - **[TryTo(this string, byte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,byte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, byte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, decimal, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,decimal,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, decimal, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, double, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,double,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, double, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, float, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,float,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, float, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, int, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,int,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, int, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, long, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,long,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, long, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, sbyte, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,sbyte,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, sbyte, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, short, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,short,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, short, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,string[],System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, string[], System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, DateTime, DateTimeStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.DateTime,System.Globalization.DateTimeStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.DateTime, System.Globalization.DateTimeStyles, System.IFormatProvider)')** + - **[TryTo(this string, Guid)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,System.Guid) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, System.Guid)')** + - **[TryTo(this string, uint, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,uint,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, uint, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ulong, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ulong,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ulong, System.Globalization.NumberStyles, System.IFormatProvider)')** + - **[TryTo(this string, ushort, NumberStyles, IFormatProvider)](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TryTo(thisstring,ushort,System.Globalization.NumberStyles,System.IFormatProvider) 'DevFast.Net.Extensions.SystemTypes.Strings.TryTo(this string, ushort, System.Globalization.NumberStyles, System.IFormatProvider)')** + +## Strings Class + +Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). + +```csharp +public static class Strings +``` + +Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Strings +### Methods + + + +## Strings.IsNotNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNotNows(this string).input') is NOT NullOrWhiteSpace string. + +```csharp +public static bool IsNotNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.IsNows(this string) Method + +Checks whether [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.IsNows(thisstring).input 'DevFast.Net.Extensions.SystemTypes.Strings.IsNows(this string).input') is NullOrWhiteSpace string. + +```csharp +public static bool IsNows(this string? input); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to check + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TrimSafeAndLower(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndLower(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndLower(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeAndUpper(this string, string, CultureInfo) Method + +Trims and converts the [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') string based on given culture +(if not supplied then is used). +If [input](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).input 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).input') is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), returns the provided +[defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(thisstring,string,System.Globalization.CultureInfo).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeAndUpper(this string, string, System.Globalization.CultureInfo).defaultValue') (without trimming and case-conversion!). + +```csharp +public static string TrimSafeAndUpper(this string? input, string defaultValue="", System.Globalization.CultureInfo? culture=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +value to operate on + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +return value in case, supplied value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') + + + +`culture` [System.Globalization.CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo 'System.Globalization.CultureInfo') + +Culture to use, if null or not supplied, then is used. + +### See Also +- [System.Globalization.CultureInfo.InvariantCulture](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.CultureInfo.InvariantCulture 'System.Globalization.CultureInfo.InvariantCulture') + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrDefault(this string, string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), provided [defaultValue](DevFast.Net.Extensions.SystemTypes.Strings.md#DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(thisstring,string,char[]).defaultValue 'DevFast.Net.Extensions.SystemTypes.Strings.TrimSafeOrDefault(this string, string, char[]).defaultValue') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrDefault(this string? input, string? defaultValue, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`defaultValue` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +default value to return when input is null. + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrEmpty(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), is returned; +otherwise trimmed string is returned. + +```csharp +public static string TrimSafeOrEmpty(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TrimSafeOrNull(this string, char[]) Method + +If value is [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null'), [null](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null') is returned; +otherwise trimmed string is returned. + +```csharp +public static string? TrimSafeOrNull(this string? input, params char[]? trimChars); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +Value to trim safe + + + +`trimChars` [System.Char](https://docs.microsoft.com/en-us/dotnet/api/System.Char 'System.Char')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +optional. when not given any char set, + whitespaces will be removed + +#### Returns +[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + + + +## Strings.TryTo(this string, bool) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out bool value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, byte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out byte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, decimal, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out decimal value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Decimal](https://docs.microsoft.com/en-us/dotnet/api/System.Decimal 'System.Decimal') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, double, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out double value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, float, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out float value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Single](https://docs.microsoft.com/en-us/dotnet/api/System.Single 'System.Single') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, int, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out int value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, long, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out long value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int64](https://docs.microsoft.com/en-us/dotnet/api/System.Int64 'System.Int64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, sbyte, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out sbyte value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.SByte](https://docs.microsoft.com/en-us/dotnet/api/System.SByte 'System.SByte') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, short, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out short value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Int16](https://docs.microsoft.com/en-us/dotnet/api/System.Int16 'System.Int16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string format, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`format` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +DateTime format to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, string[], DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, string[] formats, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`formats` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array') + +DateTime formats to use. + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, DateTime, DateTimeStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.DateTime value, System.Globalization.DateTimeStyles style=System.Globalization.DateTimeStyles.None, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.DateTime](https://docs.microsoft.com/en-us/dotnet/api/System.DateTime 'System.DateTime') + +parsed value + + + +`style` [System.Globalization.DateTimeStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.DateTimeStyles 'System.Globalization.DateTimeStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, Guid) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out System.Guid value); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/System.Guid 'System.Guid') + +parsed value + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, uint, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out uint value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32 'System.UInt32') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ulong, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ulong value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt64](https://docs.microsoft.com/en-us/dotnet/api/System.UInt64 'System.UInt64') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') + + + +## Strings.TryTo(this string, ushort, NumberStyles, IFormatProvider) Method + +Tries parsing to value. +Returns [true](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool') if parsing is successful else [false](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool'). + +```csharp +public static bool TryTo(this string? input, out ushort value, System.Globalization.NumberStyles style=System.Globalization.NumberStyles.Any, System.IFormatProvider? formatProvider=null); +``` +#### Parameters + + + +`input` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String') + +string to parse + + + +`value` [System.UInt16](https://docs.microsoft.com/en-us/dotnet/api/System.UInt16 'System.UInt16') + +parsed value + + + +`style` [System.Globalization.NumberStyles](https://docs.microsoft.com/en-us/dotnet/api/System.Globalization.NumberStyles 'System.Globalization.NumberStyles') + +style to use during parsing + + + +`formatProvider` [System.IFormatProvider](https://docs.microsoft.com/en-us/dotnet/api/System.IFormatProvider 'System.IFormatProvider') + +format provider + +#### Returns +[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean') \ No newline at end of file diff --git a/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md new file mode 100644 index 0000000..314805e --- /dev/null +++ b/docs/netstandard2.1/DevFast.Net.Extensions.SystemTypes.md @@ -0,0 +1,12 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions.SystemTypes Namespace + +Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). + +| Classes | | +| :--- | :--- | +| [ByteArrays](DevFast.Net.Extensions.SystemTypes.ByteArrays.md 'DevFast.Net.Extensions.SystemTypes.ByteArrays') | Extension methods on Array of type [System.Byte](https://docs.microsoft.com/en-us/dotnet/api/System.Byte 'System.Byte'). | +| [Enumerables](DevFast.Net.Extensions.SystemTypes.Enumerables.md 'DevFast.Net.Extensions.SystemTypes.Enumerables') | Extension methods on [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') and [System.Collections.Generic.IAsyncEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IAsyncEnumerable-1 'System.Collections.Generic.IAsyncEnumerable`1'). | +| [ReadableSpan](DevFast.Net.Extensions.SystemTypes.ReadableSpan.md 'DevFast.Net.Extensions.SystemTypes.ReadableSpan') | Extension methods on [System.ReadOnlySpan<>](https://docs.microsoft.com/en-us/dotnet/api/System.ReadOnlySpan-1 'System.ReadOnlySpan`1'). | +| [Strings](DevFast.Net.Extensions.SystemTypes.Strings.md 'DevFast.Net.Extensions.SystemTypes.Strings') | Extension methods on [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String'). | diff --git a/docs/netstandard2.1/index.md b/docs/netstandard2.1/index.md new file mode 100644 index 0000000..3f1a8bc --- /dev/null +++ b/docs/netstandard2.1/index.md @@ -0,0 +1,14 @@ +#### [DevFast.Net.Extensions](index.md 'index') + +## DevFast.Net.Extensions Assembly + +This assembly contains various well-tested, self-explained & easy to use extension methods +to achieve optimized runtime performance with improved readability of the code. + +| Namespaces | | +| :--- | :--- | +| [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | +| [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | +| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | +| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | +| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | From 7f6600b97624d797564c4d18db81e392047e3631 Mon Sep 17 00:00:00 2001 From: samaysar Date: Tue, 23 Jul 2024 16:40:59 +0200 Subject: [PATCH 9/9] removing unnecessary md files - 9 --- .gitignore | 1 - docs/net6.0/index.md | 2 -- docs/netstandard2.0/index.md | 4 ---- docs/netstandard2.1/index.md | 3 --- src/DevFast.Net.Extensions/DevFast.Net.Extensions.csproj | 1 + 5 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 64e04e3..e181024 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ bld/ [Oo]bj/ [Ll]og/ [Ll]ogs/ -[Ss]ystem*.md # Visual Studio 2015/2017 cache/options directory .vs/ diff --git a/docs/net6.0/index.md b/docs/net6.0/index.md index f30a022..466fbdf 100644 --- a/docs/net6.0/index.md +++ b/docs/net6.0/index.md @@ -9,5 +9,3 @@ to achieve optimized runtime performance with improved readability of the code. | :--- | :--- | | [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | | [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | diff --git a/docs/netstandard2.0/index.md b/docs/netstandard2.0/index.md index 909d085..466fbdf 100644 --- a/docs/netstandard2.0/index.md +++ b/docs/netstandard2.0/index.md @@ -9,7 +9,3 @@ to achieve optimized runtime performance with improved readability of the code. | :--- | :--- | | [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | | [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System](System.md 'System') | | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | -| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | diff --git a/docs/netstandard2.1/index.md b/docs/netstandard2.1/index.md index 3f1a8bc..466fbdf 100644 --- a/docs/netstandard2.1/index.md +++ b/docs/netstandard2.1/index.md @@ -9,6 +9,3 @@ to achieve optimized runtime performance with improved readability of the code. | :--- | :--- | | [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | | [DevFast.Net.Extensions.SystemTypes](DevFast.Net.Extensions.SystemTypes.md 'DevFast.Net.Extensions.SystemTypes') | Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on various system types (for e.g. [System.Array](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array'), [System.Collections.Generic.IEnumerable<>](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1'), ... ). | -| [System.Diagnostics.CodeAnalysis](System.Diagnostics.CodeAnalysis.md 'System.Diagnostics.CodeAnalysis') | | -| [System.Runtime.CompilerServices](System.Runtime.CompilerServices.md 'System.Runtime.CompilerServices') | | -| [System.Runtime.Versioning](System.Runtime.Versioning.md 'System.Runtime.Versioning') | | diff --git a/src/DevFast.Net.Extensions/DevFast.Net.Extensions.csproj b/src/DevFast.Net.Extensions/DevFast.Net.Extensions.csproj index f209618..d1d773e 100644 --- a/src/DevFast.Net.Extensions/DevFast.Net.Extensions.csproj +++ b/src/DevFast.Net.Extensions/DevFast.Net.Extensions.csproj @@ -13,6 +13,7 @@ ../../docs/$(TargetFramework) Namespaces,Types ../../DocConfig.json + Public https://github.com/samaysar/dotnet.devfast.extensions/tree/master/docs DevFast.Net.Extensions samaysar